Hi Team,
Currently i am converting msg file to tiff image.
But i need to show the complete sender address in the converted image. Is there any option to show complete address in the converted tiff image.
Please see the code which i am using
Currently showing
------------------
From : Nair,Anish
Expected
-----------
From : Anish.Nair@xxx.com
Regards
Anish
Currently i am converting msg file to tiff image.
But i need to show the complete sender address in the converted image. Is there any option to show complete address in the converted tiff image.
Please see the code which i am using
MemoryStream msgStream = null; MailMessage msg = null; Document msgDocument = null; MultiPageTiffConverterUtil m = new MultiPageTiffConverterUtil(); string TiffFileName = string.Empty; try { string FullconvertedMultiTiffName = string.Empty; // load the MSG file using Aspose.Network for .NET msg = MailMessage.Load(FullInputFileName, MessageFormat.Msg); msgStream = new MemoryStream(); msg.Save(msgStream,MailMessageSaveType.MHtmlFromat); FullconvertedMultiTiffName = Path.Combine(OutputFolder, "MSGFile.tiff"); msgStream.Position = 0; // load the MHTML stream using Aspose.Words for .NET LoadOptions opt = new LoadOptions(); opt.LoadFormat = LoadFormat.Mhtml; msgDocument = new Document(msgStream); ImageSaveOptions options = new ImageSaveOptions(Aspose.Words.SaveFormat.Tiff); options.ImageColorMode = ImageColorMode.None; options.PageIndex = 0; options.Resolution = 200; options.PageCount = msgDocument.PageCount; options.TiffCompression = TiffCompression.None; msgDocument.Save((Path.Combine(OutputFolder, "MSGFile.tiff")),options); return FullconvertedMultiTiffName; }
Currently showing
------------------
From : Nair,Anish
Expected
-----------
From : Anish.Nair@xxx.com
Regards
Anish