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

Free Support Forum - aspose.com

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

Hi,
I have 4 cases of minor formatting problems. Here is the first: (attach)
decimal-stop and tabs are ignored. Please look at the values:
50,00 €, 234,56€…
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 the issue with us.

I was able to observe the same using the latest version of Aspose.Email for .NET 4.4.0 and have logged it as NETWORKNET-34461 in our bug tracking system for further investigation by our development team. We’ll notify you here once there is any update available in this regard.