Exception with message "Unknown image format:Parameter is not valid."

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

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

Hi,

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

Please download and use the latest version:
Aspose.Cells
for .NET v7.1.2.1

it should fix the problems.

If the problem still occurs, then please provide us your xls/xlsx file which you are converting to pdf.

We will check it soon and help you asap.

Export Excel by template not file License Aspose.cells.lic . Your send mail to me?

kkhuu:
Export Excel by template not file License Aspose.cells.lic . Your send mail to me?
Hi kkhuu,

Thanks for your posting and using Aspose.Cells.

In order to get Aspose.Cells.lic file, you need to purchase a License Subscription. Please post your query on Aspose.Purchase forum for more information.