I have a message in Outlook which has two attachments; one is an Outlook Contact and the other is an Outlook Calendar Reminder item.
From Outlook I can Save the message to an msg file then I can open the msg file in an aspose MailMessage object, and I can see its Attachments collection has two members, as expected.
My question is - what is the best way to recreate the two attachments as aspose objects?
At the moment, when I enumerate the contents of the msg.Attachments collection I get two Attachment objects, but it's not clear to me how to turn one into a Contact and the other into a calendar Reminder.
My code currently gets the MIME content of each Attachment as a memory stream and uses that to construct a Word document. But the printed Word document looks like an email, not like a calendar reminder or contact.
I want to be able to print each attachment item so that its printout will be identical to what Outlook would produce if it were printing that item.