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. 7.1.1.0). 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);
Exception:

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=7.1.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
Arithmetic operation resulted in an overflow.
Aspose.Cells in file: C:\Windows\TEMP\IntraLinks\03260117-bb7f-4dce-988f-a79625686f2b.xls
FileFormat
System.Collections.ListDictionaryInternal
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

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Hi,

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

Please download and try the latest version:
Aspose.Cells
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.

Hi,

Please change your code below as the following


saveOptions = new Aspose.Cells.XlsSaveOptions();

into
saveOptions = new Aspose.Cells.PdfSaveOptions()