Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE6 - Strange problem displaying local HTML file
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00713798
Message ID:
00713880
Views:
19
Try
oIE.Navigate2(cFileName)
* or 
oIE.Navigate2("file://" + cFileName)
>Hi,
>
>I need to my VFP7 application to display a HTML file in Internet Explorer6.
>
>The file is first generated from the program and written to disk using low level file functions. Just before closing the file I issue a FFLUSH() to ensure the buffers are cleared.
>
>Then I open IE6 using:
>
>cFileName = "C:\ETWIN\ETWDATA\ATEST.HTM"
>oIE = CreateObject("InternetExplorer.Application")
>oIE.Visible = .T.
>oIE.Navigate(cFileName)
>
>What happens is next is that IE6 starts okay but gives the "Cannot find server" message. If the 'GO' button is clicked, the file is displayed as expected in HTLM format.
>
>My question is why does it not find and open the file in IE6 without clicking the 'GO' button? Is there some call that must be made to force this to happen?
>
>Regards...Rex
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform