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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=