Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Outlook msg file to tiff image

$
0
0
Hi Kasif,

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

  
 

Viewing all articles
Browse latest Browse all 1367

Trending Articles