Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Opening a file with the webBrowser control
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement