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.