Try
oIE.Navigate2(cFileName)
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--