I'm trying to create an empty sheet and then add new row with data but I get an exception while trying to access cell. I didn't find any example with the creation of an empty sheet and then adding new row.
Here is my code:
- Code: Select all
var workbook = new Spire.Xls.Workbook();
Worksheet worksheet = workbook.CreateEmptySheet("NewSheet");
worksheet.InsertRow(1);
row.Columns[0].Value = "New Value";
What I'm doing wrong?
Thanks