We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Minor format problems converting mail to pdf (2/4)

I have 4 cases of minor formatting problems. Here is the second: (attach)
the horizontal lines are missing.
I tested with Aspose.EMail and Aspose.Words
This is the code I use:
string strFile = @“C:_Temp\Aspose_EMailWord\Daten\Abrechung.msg”;
string sInFile = strFile;
string sOutFile = strFile + “.pdf”;

Aspose.Words.License wLic = new Aspose.Words.License();
Aspose.Email.License eLic = new Aspose.Email.License();

System.IO.MemoryStream mstream = new System.IO.MemoryStream();
MailMessageLoadOptions mOpts = new MailMessageLoadOptions();

mOpts.MessageFormat = MessageFormat.Msg;

Aspose.Email.Mail.MailMessage mail = Aspose.Email.Mail.MailMessage.Load(sInFile, mOpts);
mail.Save(mstream, MailMessageSaveType.MHtmlFormat);
mstream.Position = 0;
WriteStream2File(mstream, strFile + “.mhtml”);
mstream.Position = 0;

Aspose.Words.LoadOptions lo = new Aspose.Words.LoadOptions();
lo.LoadFormat = Aspose.Words.LoadFormat.Mhtml;

Aspose.Words.Document doc = new Aspose.Words.Document(mstream, lo);
doc.Save(sOutFile, Aspose.Words.SaveFormat.Pdf);

Kind regards,

Hi Oliver,

Thank you for sharing your concern with us.

I was able to reproduce this issue at my end using the latest version of Aspose.Email for .NET 4.4.0 and have logged it as NETWORKNET-34462 in our issue tracking system for further investigation by our development team. Once there is any information available in this regard, I'll update you here via this thread.

We are sorry for the inconvenience caused to you.