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

Free Support Forum - aspose.com

NullReferenceException converting file to XLS

Scenario: Converting XLSM to XLS. Aspose.Cells 22.1.

Issue: NullReferenceException is thrown by the Save method. The issue is present from Aspose.Cells 21.12 (cannot be reproduced with Aspose.Cells 21.11).

var filePath = @"sample.xlsm";
var wb = new Workbook(filePath, new LoadOptions());
wb.Save(filePath + ".xls", SaveFormat.Excel97To2003);

sample.zip (9.4 KB)

Thanks.

For internal reference: MDP-13777

@licenses,

Please notice, I am able to reproduce the issue as you mentioned by converting your template XLSM file to XLS. I found an exception “NullReferenceException” while converting XLSM file to XLS. I have logged a ticket with an id “CELLSNET-50352” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@licenses,

This is to inform you that we have fixed your issue now. The fix will be included in our regular release (Aspose.Cells for .NET v22.2) which is scheduled to be published in the next few days.

The issues you have found earlier (filed as CELLSNET-50352) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi