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

Free Support Forum - aspose.com

Null reference exception when saving certain XLS files

Using Aspose.Cells 8.0.1, attempting to save the attached xls file to PDF will cause a CellsException to be raised with a null reference exception message.

public void Aspose_Cells_SaveToPdf_NRE()
var tempFile = Path.GetTempFileName();

var workbook = new Aspose.Cells.Workbook(@".\AsposeTests\TestData\8DB5CEB635567E42D0F1232397B568983E904BA1.xls");
workbook.Save(tempFile, Aspose.Cells.SaveFormat.Pdf);

Aspose.Cells.CellsException: Object reference not set to an instance of an object.

Hi Barry,

Thanks for your posting and using Aspose.Cells.

We were able to reproduce this exception using the latest version: Aspose.Cells for .NET 8.0.1 with your source file and sample code.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-42576.


string filePath = @“F:\8DB5CEB635567E42D0F1232397B568983E904BA1.xls”;

Workbook workbook = new Workbook(filePath);


at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Aspose.Cells.Workbook.Save(String fileName)
Additional information: Object reference not set to an instance of an object.


Thanks for using Aspose.Cells.

Please download and try this fix: Aspose.Cells
for .NET v8.0.1.1
and let us know your feedback.

The issues you have found earlier (filed as CELLSNET-42576) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.