I am using NPOI 2.1.3, and having an issue where the workbook.CreateSheet method is not adding a new sheet to an existing workbook. It's not even overwriting the sheet that's already there.
Here's my code:
FileStream fs = new FileStream(myExistingWorkbook.xlsx, FileMode.Open, FileAccess.ReadWrite);
IWorkBook workbook = new XSSFWorkbook(fs);
ISheet sheet1 = workbook.CreateSheet(newSheet);
sheet1.SetActive(true);
This code throws no errors, but still isn't working. Ideas? I'm using Excel 2013, FYI.
Here's my code:
FileStream fs = new FileStream(myExistingWorkbook.xlsx, FileMode.Open, FileAccess.ReadWrite);
IWorkBook workbook = new XSSFWorkbook(fs);
ISheet sheet1 = workbook.CreateSheet(newSheet);
sheet1.SetActive(true);
This code throws no errors, but still isn't working. Ideas? I'm using Excel 2013, FYI.