Hi,
This is a forward of the original post at http://www.aspose.com/community/forums/180386/problems-converting-msg-files-to-pdf/showthread.aspx#180386.
I’m facing problems converting some MSG files (see attachment). I’m getting an exception of type PleaseReportException.
The example code in order to simulate the error is the following:
MapiMessage msg = MapiMessage.FromFile(@“Test157\email1.msg”);<o:p></o:p>
using (FileStream rtfStream = new FileStream(@"Test157\out.rtf", FileMode.Create))
{
// Write RTF content to the stream
TextWriter tw = new StreamWriter(rtfStream);
tw.Write(msg.BodyRtf);
tw.Flush();
}
I'm using Aspose.Network 4.5.0.