We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Arithmetic operation resulted in an overflow. Arithmetic operation resulted in an overflow. Arithmetic operation resulted in an overflow

Conversion of one of the file failed while converting excel file to PDF. We are using Aspose.Cells(Ver. Following is the exception we got. This issue happened on production due to security reasons I cannot share that file but will try to provide you scrubbed files. If possible try to fix without file. Please provide fix asap.

Code snippet:
Workbook workbook=null;
workbook = new Workbook(sourceFilePath);
Aspose.Cells.SaveOptions saveOptions = null;
saveOptions = new Aspose.Cells.XlsSaveOptions();
saveOptions.CachedFileFolder = Path.GetTempPath();
saveOptions.SaveFormat = Aspose.Cells.SaveFormat.Pdf;
if (workbook != null)
workbook.Save(destinationFilePath, saveOptions);

3/11/2012 10:24:31 AM
Message: HandlingInstanceID: 9bac5a35-58c9-43b4-b947-f4fcd01aadc1
An exception of type 'Aspose.Cells.CellsException' occurred and was caught.
2012-03-11 06:24:31Z
Aspose.Cells.CellsException, Aspose.Cells, Version=, Culture=neutral, PublicKeyToken=716fcc553a201e56
Arithmetic operation resulted in an overflow.
Aspose.Cells in file: C:\Windows\TEMP\IntraLinks\03260117-bb7f-4dce-988f-a79625686f2b.xls
Void Save(System.String, Aspose.Cells.SaveOptions)
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Intralinks.Common.Utilities.AsposeConverter.ConvertXlsToPdf(String sourceFilePath, String destinationFilePath) in c:\ilbuilds\pdfconv\build_trunk\CommonUtilities\AsposeConverter.cs:line 83
at Intralinks.Common.Utilities.CommonUtilities.ConvertOfficeDocsToPDF(String sourceFile, String destinationFolder, Boolean useOriginalFileName) in c:\ilbuilds\pdfconv\build_trunk\CommonUtilities\CommonUtilities.cs:line 1465
Category: Logging Exception
Priority: 1
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: WDPPF01
Application Domain: ILPDFConversionService.exe
Process Id: 2056
Process Name: C:\PDFConvService\WOODDALE.pdfconv\instance1\Release\ILPDFConversionService.exe
Win32 Thread Id: 4920
Thread Name:
Extended Properties: Product Version - 3.1.27217.0



Thanks for your posting and using Aspose.Cells for .NET.

Please download and try the latest version:
for .NET v7.1.2.3
and let us know your feedback.

If the problem still occurs, then please also provide us your source xls/xlsx file.

We will look into it and help you asap.


Please change your code below as the following

saveOptions = new Aspose.Cells.XlsSaveOptions();

saveOptions = new Aspose.Cells.PdfSaveOptions()