Hi All!
ISheet has ShiftRow, RemoveRow method.
HSSFSheet after each row operation recalc LastRowNum value.
XSSFSHeet recalc LastRowNum only after CreateRow operation triggers.
How manualy recalc LastRowNum in XSSFSheet?
That's needed when new RowNumber > LastRowNumber. In HSSFSheet use can compare LastRowNum with new RowNum to prevent error. In XSSFSHeet can't.
NPOI 2.0 beta 1
.Net 4.0
Thanks.
ISheet has ShiftRow, RemoveRow method.
HSSFSheet after each row operation recalc LastRowNum value.
XSSFSHeet recalc LastRowNum only after CreateRow operation triggers.
How manualy recalc LastRowNum in XSSFSheet?
That's needed when new RowNumber > LastRowNumber. In HSSFSheet use can compare LastRowNum with new RowNum to prevent error. In XSSFSHeet can't.
NPOI 2.0 beta 1
.Net 4.0
Thanks.