Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browser control works intermittently
Message
De
06/06/2003 16:09:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Web browser control works intermittently
Divers
Thread ID:
00797476
Message ID:
00797476
Vues:
49
I am using the webbrowser control to display files via their associated IE plugin. For instance .PDF & .Dwg files, Adobe & autocad. I have a form with the following code in the init
LPARAMETERS cFilePath
DODEFAULT()

ThisForm.olecontrol1.Navigate(m.cFilePath)
ThisForm.olecontrol1.Refresh()
This code always works on my development machine in developer mode. But it does not work at runtime on my developer machine. However, there are other machines that it will work on at runtime.

When it doesnt work, IE displays "this page could not be displayed"

I do have nodefault in the control's refresh method.

The plug-in's are installed on all the machines in question. To test this, I open IE manually, then choose file/open and point to a PDF and it works.

Also, before executing I am verifying that the file and path are valid via
file(m.cfilepath)
so I know the file exists.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform