MemoryStream destination = new MemoryStream();
Aspose.Word.Document doc = new Aspose.Word.Document(@"D:\Try.doc");
doc.Save(destination,Aspose.Word.SaveFormat.FormatAsposePdf);
destination.Seek(0,SeekOrigin.Begin);
System.Xml.XmlDocument xmldoc = new System.Xml.XmlDocument();
xmldoc.Load(destination);
Aspose.Pdf.Pdf pdfDoc = new Aspose.Pdf.Pdf();
// pdfDoc.IsImagesInXmlDeleteNeeded = true;
pdfDoc.BindXML(xmldoc,null);
pdfDoc.Save("D:\\Try.pdf");
After this line it gives error as
A first chance exception of type 'System.IndexOutOfRangeException' occurred in aspose.pdf.dll
forever
November 17, 2005, 4:23am
2
Please attach your Try.doc and let us test it. BTW, please make sure you are using the latest version.
rajeshr
November 17, 2005, 9:19pm
3
Hi, Attached Try.doc. Replay soon.
Thanks in advance
rajeshr
November 17, 2005, 9:32pm
4
This error comes when Break into debugger is set for Common Language Runtime Exceptions.
If I remove that, No such Error comes
forever
November 18, 2005, 12:19am
5
OK. I will test it and reply to you soon.
forever
November 29, 2005, 2:30am
6
Sorry for replying to this question so late. In my test, I set the "break into debugger" but still can't get this exception. Can you please provide detailed info? If you ignore the error, the result is correct, right?