I try to convert an Eml to Pdf file.
The Pdf file converted is wrong for some Eml files
I use VS 2010 on Windows 7, and Aspose.EMail for .Net 3.4.0 - .net 3.5
(same problem with Aspose.EMail for .Net 3.6.0)
Here is the code :
Dim inStream As MemoryStream = New MemoryStream(bFileW) 'bFileW = Eml file bytes
Dim msgStream As MemoryStream = New MemoryStream()
Dim msg As Mail.MailMessage = Mail.MailMessage.Load(inStream, Mail.MessageFormat.Eml)
msgStream.Position = 0
Dim msgDocument As Aspose.Words.Document = New Aspose.Words.Document(msgStream)
msgDocument.Save(outStream, Aspose.Words.SaveFormat.Pdf) 'outStream for Pdf file
The Eml file is in 'File Attachment'
Thank you for your response.