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);
}
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);
}