I’m initializing a workbook from an existing excel file, like so:
Workbook workbook = new Workbook(new MemoryStream(bytes));
// where bytes is a byte array
Then, replacing some cells in the sheets:
var targetCell = sheet.Cells[someRow, someColumn];
and finally going to save:
var docStream = new MemoryStream();
which throws a null reference exception.
Attached is the excel file, this is C# using .NET Core and the latest Aspose nuget package.
test.zip (6.0 KB)