Open MagnusBeijer opened 1 month ago
I am experiencing the same problem. After WorksheetPart.Worksheet.Save()
has been executed following changes are not recognized despite calling WorksheetPart.Worksheet.Save()
again...
I am not providing any code snippet since it would logically be identical with the one provided by @MagnusBeijer
I am using OpenXml version 3.1.0
Thanks for the report! I'll take a look
Hello. I have a same problem. Appen Row in SheetData not working after Document.Save() Without any erros. File contais nunly rows each was added before Save()
Fixed after downgrade DocumentFormat.OpenXml.dll and DocumentFormat.OpenXml.Framework.dll from 3.1.0 to 3.0.2
public void AddRow()
{
if (Row != null)
{
ShData.Append(Row);
}
Row = new Row();
rowInd++;
if (rowInd % 1000 == 0)
{
Document.Save();
}
}
Describe the bug When calling
Worksheet.Save()
in 3.0.2 changes were saved and you could continue to make changes to the worksheet. In version 3.1 after callingWorksheet.Save()
no other changes to the worksheet gets applied.To Reproduce
Observed behavior The worksheet is blank.
Expected behavior A worksheet with one cell that says "Hello" is created.
Desktop