PDA

Click to See Complete Forum and Search --> : Using hooked up internet explorer object


Error
Feb 18th, 2001, 03:00 PM
Hi i want to save an html documnet in my hooked up explorer object, i want it to be done automatically without bothering the user, and i want it to save it as mht and NOT html

i tried to do it myself with the following code but it seems like the explorer is still asks for OK and saves it as HTMl file although the ending is of an mht file...
please help me

the code:
after creating the object of the explorer (named MIE as mshtmldocvw and successfully entering a site ....)

MIe.ExecWB(OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT & OLECMDEXECOPT_DONTPROMPTUSER, "C:\Veryinteresting.mht")

Zaf Khan
Feb 19th, 2001, 11:11 PM
Its MUCHO MUCHO easier to download the OCX from MS (its free) and use that as its SPECIFICALLY designed to do what you want......



download
http://officeupdate.microsoft.com/2000/downloadDetails/Mhtml32.htm

reconvert back from mht to multiple files
http://support.microsoft.com/support/kb/articles/Q251/3/36.ASP


DocZaf
{:->