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. 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/10/2012 6:48:17 AM
Message: HandlingInstanceID: 870e325f-0d0d-4b74-9bc5-1405dbddac1d
An exception of type 'Aspose.Cells.CellsException' occurred and was caught.
2012-03-10 01:48:17Z
Aspose.Cells.CellsException, Aspose.Cells, Version=7.1.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
Unknown image format:Parameter is not valid.
Aspose.Cells in file: C:\Windows\TEMP\IntraLinks\cfa1b321-336e-438c-a4b3-a835e82d5126.xlsx
InvalidData
System.Collections.ListDictionaryInternal
Int32 (System.IO.Stream)
at ..(Stream )
at ..(Shape , Stream )
at Aspose.Cells.Drawing.ShapeCollection.(Shape , Stream )
at Aspose.Cells.Drawing.ShapeCollection.AddOleObject(Int32 upperLeftRow, Int32 top, Int32 upperLeftColumn, Int32 left, Int32 height, Int32 width, Byte[] imageData)
at Aspose.Cells.Drawing.OleObjectCollection.Add(Int32 upperLeftRow, Int32 upperLeftColumn, Int32 height, Int32 width, Byte[] imageData)
at ..(XmlElement )
at ..(XmlElement )
at ..(XmlElement )
at ..()
at ..( )
at ..( , String )
at ..()
at ..()
at ..(Workbook )
at Aspose.Cells.Workbook.(Stream , LoadOptions , Boolean )
at Aspose.Cells.Workbook.(String , LoadOptions )
at Intralinks.Common.Utilities.AsposeConverter.ConvertXlsToPdf(String sourceFilePath, String destinationFilePath) in c:\ilbuilds\pdfconv\build_trunk\CommonUtilities\AsposeConverter.cs:line 77
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: WDPPF02
Application Domain: ILPDFConversionService.exe
Process Id: 3584
Process Name: C:\PDFConvService\WOODDALE.pdfconv\instance3\Release\ILPDFConversionService.exe
Win32 Thread Id: 4980
Thread Name:
Extended Properties: Product Version - 3.1.27217.0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=