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
MemoryStream msgStream = null;
MailMessage msg = null;
Document msgDocument = null;<span style="color:#2b91af;">MultiPageTiffConverterUtil</span> m = <span style="color:blue;">new</span> <span style="color:#2b91af;">MultiPageTiffConverterUtil</span>(); <span style="color:blue;">string</span> TiffFileName = <span style="color:blue;">string</span>.Empty; <span style="color:blue;">try</span> { <span style="color:blue;">string</span> FullconvertedMultiTiffName = <span style="color:blue;">string</span>.Empty; <span style="color:green;">// load the MSG file using Aspose.Network for .NET</span> msg = <span style="color:#2b91af;">MailMessage</span>.Load(FullInputFileName, <span style="color:#2b91af;">MessageFormat</span>.Msg); msgStream = <span style="color:blue;">new</span> <span style="color:#2b91af;">MemoryStream</span>(); msg.Save(msgStream,<span style="color:#2b91af;">MailMessageSaveType</span>.MHtmlFromat); FullconvertedMultiTiffName = <span style="color:#2b91af;">Path</span>.Combine(OutputFolder, <span style="color:#a31515;">"MSGFile.tiff"</span>); msgStream.Position = 0; <span style="color:green;">// load the MHTML stream using Aspose.Words for .NET</span> <span style="color:#2b91af;">LoadOptions</span> opt = <span style="color:blue;">new</span> <span style="color:#2b91af;">LoadOptions</span>(); opt.LoadFormat = <span style="color:#2b91af;">LoadFormat</span>.Mhtml; msgDocument = <span style="color:blue;">new</span> <span style="color:#2b91af;">Document</span>(msgStream); <span style="color:#2b91af;">ImageSaveOptions</span> options = <span style="color:blue;">new</span> <span style="color:#2b91af;">ImageSaveOptions</span>(Aspose.Words.<span style="color:#2b91af;">SaveFormat</span>.Tiff); options.ImageColorMode = <span style="color:#2b91af;">ImageColorMode</span>.None; options.PageIndex = 0; options.Resolution = 200; options.PageCount = msgDocument.PageCount; options.TiffCompression = <span style="color:#2b91af;">TiffCompression</span>.None; msgDocument.Save((<span style="color:#2b91af;">Path</span>.Combine(OutputFolder, <span style="color:#a31515;">"MSGFile.tiff"</span>)),options); <span style="color:blue;">return</span> FullconvertedMultiTiffName; }</pre><br><br>Currently showing <br>------------------<br>From : Nair,Anish<br><br>Expected<br>-----------<br>From : Anish.Nair@xxx.com<br><br>Regards<br>Anish<br>