Hi Kasif,
I am able to convert the msg file to tiff image by using the below code.
But the image which is embedded with the email body is not appearing in the converted file.
Can you please help me.
Please find the attached msg file and converted tiff image
Regards
Anish
I am able to convert the msg file to tiff image by using the below code.
public static string ConvertMSGToTiff(string OutputFolder, string FullInputFileName) { string FullconvertedMultiTiffName = string.Empty; MapiMessage mapi = MapiMessage.FromFile(FullInputFileName); MailMessageInterpretor mi = MailMessageInterpretorFactory.Instance.GetIntepretor(mapi.MessageClass); MailMessage eml = mi.Interpret(mapi); MailPrinter printer = new MailPrinter(); FullconvertedMultiTiffName = Path.Combine(OutputFolder, "MSGFile.tiff"); printer.FormattingFlags = Aspose.Email.Printing.MessageFormattingFlags.MailInfo; printer.Print(eml, FullconvertedMultiTiffName, Aspose.Email.Printing.PrintFormat.Tiff); return FullconvertedMultiTiffName; }
But the image which is embedded with the email body is not appearing in the converted file.
Can you please help me.
Please find the attached msg file and converted tiff image
Regards
Anish