Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a file with the webBrowser control
Message
From
12/09/2007 15:07:48
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Opening a file with the webBrowser control
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01253987
Message ID:
01253987
Views:
92
I have a simple document viewer form where I allow users to select any file to be opened in the web browser control embedded in a VFP form. While many of the "typical" files open and display within the browser itself (like HTM, XML, DOC, XLS, PDF, BMP, JPG, etc.) there are those that require opening via Windows file association. When that happens, I see two dialogs originating from the web browser's Navigate2 method:

1) "File Download" (has a progress bar with an enabled 'Cancel' button) and
2) "File Download - Security Warning" (has a 'Do you want to open or save this file?' with 'Open', 'Save' and 'Cancel' buttons).

Is there a way to prevent these dialogs and always have the file 'Opened'?

TIA

Mike
Next
Reply
Map
View

Click here to load this message in the networking platform