Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Accessing Local File in IE 9
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Problem Accessing Local File in IE 9
Divers
Thread ID:
01530020
Message ID:
01530020
Vues:
137
Have some simple code which opens an HTML file and grabs the Document.DocumentElement.innerText:

oIE = CREATEOBJECT("InternetExplorer.Application")
oIE.Navigate(Somefile.htm)
cText = oIE.Document.DocumentElement.innerText

When running this code in Windows7 64 Bit (IE 9) and selecting a Local File, I get an Error message that "Document is not an object".

This code works correctly if the File is on the Web or on a Network Drive. There is no problem in Windows XP running IE 8.

Does a Setting in IE 9 have to be tweaked to make this work properly?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform