Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Problem Accessing Local File in IE 9
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement