Hi Geetha,
Sure, my attachment contain file.html page and file.mht. I use .html page for convert to pdf file as you can see, at first time I think the part that should be display image request from WebResource.axd... but when I generate this html page there is no WebResource.axd file so that why the image didn't display.
Afther that I try to save page with .mhtml and then use it convert to pdf then the pdf file display it is empty page I don't know how to solve this problem please help.
This is code that I use for generate html file from currentUrl :
previewBrowser.Navigate(currentUrl, ref nullObject, ref nullObjStr, ref nullObjStr, ref nullObjStr);
while (previewBrowser.ReadyState != SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE)
Application.DoEvents);
exportStream = new StreamWriter(tempHtlm);
html = ((mshtml.HTMLDocumentClass)previewBrowser.Document).body.outerHTML;
html = metaTag + html;
exportStream.Write(html);
exportStream.Close();
Adn then convert html to image:
HtmlConverter htmlC = new HtmlConverter()
Image metaFile = htmlC.ConvertToImage(tempHtlm, ImageType.Metafile)
I hope you understand my English.
Temp_4469ae94.zip