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

Free Support Forum - aspose.com

Error saving workbook as PDF or AsposePDF

Hi, saving a workbook as PDF or AsposePDF fails with Aspose.Cells 4.9.1.5:

Cells::FileFormatType::Pdf:

"Aspose.Cells.CellsException: Der Schlüssel darf nicht NULL sein.
Parametername: key
bei xf1e06fd8be9d8c69.x19af241ea5d0fb76.x0acd3c2012ea2ee8(String xafe2f3653ee64ebc)
bei Aspose.Cells.Workbook.Save(String fileName, FileFormatType fileFormatType)"

The fileName is not NULL and not empty.

Cells::FileFormatType::AsposePdf:

"Eine Ausnahme (erste Chance) des Typs "System.NullReferenceException" ist in Aspose.Cells.dll aufgetreten. Zusätzliche Informationen: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."

Hi,

Please post your template Excel file with your sample code here, we will check your issue soon.

By the way, please see the document for how you can convert Excel files to Pdf format:
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/converting-to-pdf-files.html


Thank you.

Hi, please find attached the sample file.

Hi,

Thanks for providing us the template file.

I have found the issue as you have described. We will figure it out soon.

Your issue has been logged into our issue tracking system with an issue id: CELLSNET-17288.

Thank you.

Hi,

We have fixed your mentioned issue, please try the attached version.

Thank you.

Hi, with that version the problem has been solved. Thanks.

Hi,

Please ignore my previously attached version/fix v4.9.1.7 as there was an internal bug in it (we found).
Please use the new fix v4.9.1.8 attached.

Thanks and sorry for any inconvenience.