You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using ClosedXML.Excel;publicvoidMain(){stringfileName=".\\test.xlsx";// file can be created manually or by ClosedXML:XLWorkbookbook1=new XLWorkbook();
book1.AddWorksheet("sheet1");
book1.AddWorksheet("sheet2");
book1.SaveAs(fileName);XLWorkbookbook2=new XLWorkbook(fileName);
book2.Worksheet(1).Delete();
book2.Save();
book2.Save();// <- NullReferenceException}
The text was updated successfully, but these errors were encountered:
v0idname
changed the title
NullReferenceException on Excel.XLWorkbook.Save()
NullReferenceException on XLWorkbook.Save()
Aug 9, 2017
Do you want to request a feature or report a bug?
Version of ClosedXML
0.85.0, 0.86.0, 0.87.1, 0.88.0
What is the current behavior?
NullReferenceException on second call of XLWorkbook.Save() after XLWorksheet.Delete():
test.xlsx
Code to reproduce problem:
The text was updated successfully, but these errors were encountered: