How can one use VBScript to read HTML file?
Of course it can be read as Text document,
but we want to use DOM (HTMLDocument, IHTMLBodyElement etc?)
so that the document can be parsed.
Following code works in VB with some undesirable effects
(launches IE)
===============
Set oH = New HTMLDocument
oH.url = "file://TestFile.HTM"
Set oB = oH.body
==================
We need to do this in VBScript if possible.
We tried following code but keep getting error on
each CreateObject (any variation)
=============================
Dim oH, oB
Set oH = CreateObject("HTMLDocument"
Set oH = CreateObject("MSHTML.HTMLDocument"
Set oH = CreateObject("MSHTMLCtl.HTMLDocument"
oH.url = "file://TestFile.HTM"
===========================
TIA
Of course it can be read as Text document,
but we want to use DOM (HTMLDocument, IHTMLBodyElement etc?)
so that the document can be parsed.
Following code works in VB with some undesirable effects
(launches IE)
===============
Set oH = New HTMLDocument
oH.url = "file://TestFile.HTM"
Set oB = oH.body
==================
We need to do this in VBScript if possible.
We tried following code but keep getting error on
each CreateObject (any variation)
=============================
Dim oH, oB
Set oH = CreateObject("HTMLDocument"
Set oH = CreateObject("MSHTML.HTMLDocument"
Set oH = CreateObject("MSHTMLCtl.HTMLDocument"
oH.url = "file://TestFile.HTM"
===========================
TIA