Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IE6 - Strange problem displaying local HTML file
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00713798
Message ID:
00713880
Vues:
21
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform