Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control works intermittently
Message
From
06/06/2003 16:09:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Web browser control works intermittently
Miscellaneous
Thread ID:
00797476
Message ID:
00797476
Views:
50
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.
Next
Reply
Map
View

Click here to load this message in the networking platform