Error creating PDF


I have created a simple excel workbook. I can save this to XLS format without issue, however when I try to save t to PDF I get a fairly generic error message:

‘Object reference not set to an instance of an object’

The code I’m using is:

Workbook.Save(“D:\\test.pdf”, SaveFormat.pdf);

Any suggestions?


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

Your code is correct and there is no code error, we can see.

Please download and try the latest version: Aspose.Cells
for .NET v7.3.4.2
. It should fix your mentioned issue.

If your issue still occurs, then please provide us your source xls/xlsx file which you are converting to pdf and sample code replicating this issue with the latest version.

We will look into your issue and help you asap.


I have tried installing version 7.3.4

Did'nt see on your download page. Is this an offical release?


Thanks for using Aspose.Cells.

Since, both versions are quite recent, so your issue might be replicable on version too. This is actually a minor release and not available on official page.

Anyway, please provide us your source files and sample code. We will soon look into your issue.