Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

InternetExplorer.Application and HTA

124 views
Skip to first unread message

Rob

unread,
Dec 6, 2002, 10:27:54 PM12/6/02
to
Greetings, folks..

I'm trying to open an instance of Internet Explorer and dynamically
generate an HTA page, like such:

Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
OIE.Navigate "about:blank"

Set oIEDoc = oIE.Document
oIEDoc.WriteLn "<HTML>"
oIEDoc.WriteLn "<HEAD>"
oIEDoc.WriteLn "<HTA:APPLICATION"
oIEDoc.WriteLn "MAXIMIZEBUTTON = no"
oIEDoc.WriteLn ">"
oIEDoc.WriteLn "</HEAD>"
oIEDoc.WriteLn "</HTML>"

The source shows it there, however, I don't think IE opens in a mode
to read an HTA file properly. Anyone aware of any work-arounds or
something I'm missing?

Rob

Jean

unread,
Dec 6, 2002, 11:42:43 PM12/6/02
to
Don't know if it's a good idea to do that but if you really want
you must create a file with the HTA content by using the File System Object
and run you file after by using the Run method of WSH.
With Run method, if you have named your file without an HTA extension you
must run the file with MSHTA.EXE and the file path and name as argument :
mshta <htapath>\filename.ext

Regards,

Jean - JMST
Belgium

jm...@ibelgique.com (Reply to the group)

--

"Rob" <wyn...@xrgaming.net> a écrit dans le message de news: 192eb73.02120...@posting.google.com...

Michael Harris (MVP)

unread,
Dec 7, 2002, 12:13:19 AM12/7/02
to
> The source shows it there, however, I don't think IE opens in a mode
> to read an HTA file properly. Anyone aware of any work-arounds or
> something I'm missing?

IE (iexplore.exe) doesn't recognize the HTA:APPLICATION tag...

HTAs are hosted by mshta.exe which does not expose an external automation
model comparable to InternetExplorer.Application.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US


0 new messages