Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: HSSFSheet.RemoveRow() can't remove row but clear all cells in it [12918]

$
0
0
var workbook = WorkbookFactory.Create("book1.xls");
var sheet = workbook.GetSheetAt(0);

// remove second row
sheet.RemoveRow(sheet.GetRow(1));
using (var fs=new FileStream("book2.xls",FileMode.Create))
{
workbook.Write(fs);
}

Viewing all articles
Browse latest Browse all 1621

Trending Articles