Free Support Forum - aspose.com

Overflow exception when saving to FormatAsposePdf

Hi,

When trying to save to pdf format I get the following error:

"An unhandled exception of type 'System.OverflowException' occurred in aspose.word.dll

Additional information: Arithmetic operation resulted in an overflow."


This occurs at the 2nd line of the following:


Dim stream As MemoryStream = New MemoryStream
doc.Save(stream, SaveFormat.FormatAsposePdf)


I know the resultant doc file is Ok because I have saved it as doc format and viewed it.

Any help would be appreciated.

Tariq

Hi Tariq,

Thank you for considering Aspose.

Please attach the original template.