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

Free Support Forum - aspose.com

NullReferenceException upon saving workbook after worksheet copying

Hi, Aspose Team!

It’s me again! I have a new issue.
This issue happens, when you try to save workbook object into new file, after worksheet was copied from one workbook to another.

Here is the sample code:
var workbook = new Workbook(stream, loadOptions);
var source = new Workbook(@“source.xls”, loadOptions);

var destWorksheet = workbook.Worksheets[“wks”];
var sourceWorksheet = source.Worksheets[“src”];

var format = new OoxmlSaveOptions(SaveFormat.Excel97To2003);

workbook.Save(“out.xls”, format); \ here exception occurs!

There was similar issue (Null-reference exception during Save if worksheet was copied from another workbook)
But it seems, that we still have this problem.
I’ve used the latest Aspose.Cells library.

Thank You in advance, and btw I’m amazed, that you reply on my questions even on Saturday!
It’s really helpfull and shows, that we (your clients) are not abandoned.

With Best Regards,


Thanks for your reporting and using Aspose.Cells.

We have logged your issue in our database. We will look into it and fix the problems. Once, some fix is available or we have some update relating to it, we will let you know asap.

This issue has been logged as CELLSNET-40562.


We have fixed this issue. Please download and try the latest version: Aspose.Cells for .NET v7.1.2.7

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

This message was posted using Notification2Forum from Downloads module by aspose.notifier.