General information
Category:
COM/DCOM and OLE Automation
Title:
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only