Hi,
We are using Aspose.Network & Aspose.Words to convert msg files to tif images.
We have been using Aspose.Network.dll (6.1.0.0) & Aspose.Words.dll (9.1.0.0) for above task.
Attached Outlook.msg should generate 2 tif images when below code is ran but it instead generates 8 tif images.
Outlook.msg contains table which gets screwed during execution of below code.
using System.Collections.Generic;
using System.IO;
using System.Text;
using Aspose.Words;
using Aspose.Words.Saving;
using Aspose.Network.Outlook;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Aspose.Network.License licenseNetwork = new Aspose.Network.License();
licenseNetwork.SetLicense("Aspose.Network.lic");
Aspose.Words.License licenseWords = new Aspose.Words.License();
licenseWords.SetLicense("Aspose.Words.lic");
MapiMessage msg = MapiMessage.FromFile("Outlook.msg");
using (MemoryStream rtfStream = new MemoryStream())
{
TextWriter tw = new StreamWriter(rtfStream);
tw.Write(msg.BodyRtf);
tw.Flush();
Document doc = new Document(rtfStream);
ImageOptions imgOptions = new ImageOptions();
imgOptions.Resolution = (float)200;
imgOptions.TiffCompression = TiffCompression.Ccitt4;
for (int i = 0; i < doc.PageCount; i++)
doc.SaveToImage(i, 1, "image" + i.ToString() + ".tif", imgOptions);
}
}
}
}
This issue was reported from our customer as critical issue that must be fixed ASAP.
It is being used in production environment and fix is urgent.
Please provide us with an ETA for a fix so that we can tell our customer.
Thank You.