I have a html file with some images linked which are in another folder.Now using CDO dll I have created mht file from that html.Problem is,the file can not be opened in word,it can only be opened in IE.
But when i open the created mht file in IE and then save the page from page->save as ->.mht option then the mht file can be opened in word.
So what IE adds extra to that file so that it can be opened in word?
My code is----------------------------------------------------------------------------------
CDO.Message msg = new CDO.MessageClass();
CDO.Configuration cfg = new CDO.ConfigurationClass();
msg.Configuration = cfg;
msg.CreateMHTMLBody("file://"+myhtmlfilepath, CDO.CdoMHTMLFlags.cdoSuppressAll,"","");
msg.GetStream().SaveToFile(mylocation+"\\test.mht", ADODB.SaveOptionsEnum.adSaveCreateOverWrite);