Thanks..
I tried out what you said..i used the following code
CDO.MessageClass message = new CDO.MessageClass();
message.CreateMHTMLBody("http://www.google.com/",
CDO.CdoMHTMLFlags.cdoSuppressNone, "", "");
ADODB.Stream stream = message.GetStream();
stream.SaveToFile("fanms.mht",
ADODB.SaveOptionsEnum.adSaveCreateOverWrite);
but i keep getting 'Interface not supported at CreateMHTMLBody...
any clues to this........
Regards
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:#V**************@TK2MSFTNGP09.phx.gbl...
I project that I inherited at work create MHT files for web pages. The
way that our system does it is that we use the CDO object (interop) which has
facilities for creating MHT files.
Alternatively (which is how our program should be doing it), you would
pull each file from the website (using something like the HttpWebRequest class)
and package it in an MHT. I believe the MHT has a standard text format
(basically a multipart document). You could package all the content into
this file.
"Von Shean" <vo******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... I have a requirement to save web pages from a different site on to my
server as mht files ...and later i would need to email them to different
recipients.
I am using c# for my development.
Email part is easy but i have no clue how to do the saving as mht thing.
can any one suggest how can this happen....?
Regards,