Hi,
Thanks for your waiting.
Our Spire.Email supports getting body html from message, and our Spire.Doc supports converting word to image, hence you can achieve your need to convert mailbody with original style to image using the both products. Please refer to the following sample code. However, the inline images in body html cannot be obtained at present. Our Dev team is still working on the feature, if it is available, we will inform you.
Download link of Spire.Email:
Spire.Email Pack(hot fix) Version:2.4.0Download link of
Spire.Doc: Spire.Doc Pack Version:7.7- Code: Select all
MailMessage mail = MailMessage.Load("sample.msg");
string htmlBody = mail.BodyHtml;
Document doc = new Document();
Section section = doc.AddSection();
Paragraph p = section.AddParagraph();
p.AppendHTML(htmlBody);
Image image=doc.SaveToImages(0, ImageType.Bitmap);
image.Save("result.png", System.Drawing.Imaging.ImageFormat.Png);
Sincerely,
Nina
E-iceblue support team