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)

Hi,
I have 4 cases of minor formatting problems. Here is the second: (attach)
the horizontal lines are missing.
I tested with Aspose.EMail 4.1.0.0 and Aspose.Words 14.6.0.0
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();
wLic.SetLicense(“Aspose.Total.lic”);
Aspose.Email.License eLic = new Aspose.Email.License();
eLic.SetLicense(“Aspose.Total.lic”);

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,
Oliver

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.