Free Support Forum - aspose.com

Aspose words issue with rtf embedded mail message

I have a .rtf document that has a mail message embedded. I noticed that the progid is “mailmsgatt”. Earlier we had posted for another progid (outlook.msgattach) and that has been resolved. It is just that when we save the file from this file, it comes out corrupt. Any suggestions or fixes will help.

Attached is the rtf sample.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I cannot reproduce the problem on my side. I used the following code to extract OLE object from the document and I can successfully open the output file using MS Outlook.

Document doc = new Document(@"Test001\1847700000031.rtf");

Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);

shape.OleFormat.Save(@"Test001\out.msg");

Best regards.