Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default "File Download" dialog box

Hi,

Can anyone please tell me how to programatically click the "Open" button in
an IE "File Download" dialog box?

(Is the dialog box an object of the IE document? the window? I'm baffled.)

Thanks in advance.

Brian


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default "File Download" dialog box

Hi Brian,
see Dialog Boxes in VBA
http://www.mvps.org/dmcritchie/excel...g.htm#openfile
--
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Brian Delaney" wrote in message ...
Hi,

Can anyone please tell me how to programatically click the "Open" button in
an IE "File Download" dialog box?

(Is the dialog box an object of the IE document? the window? I'm baffled.)

Thanks in advance.

Brian




  #3   Report Post  
Posted to microsoft.public.excel.programming
BPD BPD is offline
external usenet poster
 
Posts: 1
Default "File Download" dialog box

David, thanks for the tip. However the dialog box I'm trying to
identify/manipulate is not an Excel db. Rather, it's the "File
Download" db that pops up in an Internet Explorer window when trying to
download a file from a site, giving the options (via buttons) to Open
or Save the file or Cancel the download.

Again, I can't figure out what object hierarchy the db belongs to (IE,
Shell, ShellWindows?), or is it even an object at all?

Currently, I'm opening the file using Sendkeys and sending "O" to click
the Open button, but I hate having to rely on Sendkeys.

Any further help and/or direction you can point me in is much
appreciated.

Thanks,

Brian

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default "File Download" dialog box

Hi,
Please try the following link.it might help:
http://www.webdeveloper.com/forum/sh...d.php?t=104022

Add following code to your web page
Set objStream = Server.CreateObject("ADODB.Stream")
With objStream
..Open
..Type = 1
..LoadFromFile (server.MapPath(StrFilePath))'Full Physical Path to File
End with
With Response
..Clear
..AddHeader "Content-Disposition", "attachment; filename=" & StrFile & ""
'Filename
..Charset = "UTF-8"
..ContentType = "application/save"
..BinaryWrite objStream.Read
..Flush
End With
objStream.Close
set objStream = nothing

"BPD" wrote:

David, thanks for the tip. However the dialog box I'm trying to
identify/manipulate is not an Excel db. Rather, it's the "File
Download" db that pops up in an Internet Explorer window when trying to
download a file from a site, giving the options (via buttons) to Open
or Save the file or Cancel the download.

Again, I can't figure out what object hierarchy the db belongs to (IE,
Shell, ShellWindows?), or is it even an object at all?

Currently, I'm opening the file using Sendkeys and sending "O" to click
the Open button, but I hate having to rely on Sendkeys.

Any further help and/or direction you can point me in is much
appreciated.

Thanks,

Brian


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My File Open Dialog is "permanently" maximised veryeavy Excel Discussion (Misc queries) 4 December 12th 07 02:35 PM
Scroll Bar missing "Control" tab in "Format Properties" dialog box Peter Rooney Excel Discussion (Misc queries) 5 August 24th 06 05:36 PM
Getting "Save as PDF File" Dialog at end of printing to PDF using PDFwriter Chuck Reed Excel Programming 4 May 13th 04 12:01 PM
auth data not passed to "transferring file..." dialog Paul G[_2_] Excel Programming 0 October 22nd 03 10:37 PM
Disable "File Not Found" dialog box Sandy[_3_] Excel Programming 4 September 4th 03 03:05 AM


All times are GMT +1. The time now is 03:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"