Aspose.Cells.dll中cell的相关操作
Aspose.Cells.Workbook pWorkBook = new Workbook(string sExcelPath);
Aspose.Cells.Worksheet pTDSheet = pWorkBook.Worksheets[0];
Aspose.Cells.Cells pCell= pTDSheet.Cells;
删除行:
pCell.DeleteRows(iStartRow , iTotalCount, true);
插入行:
pCell.InsertRows(iStartRow, iTotalCount, true);
cell赋值:
pCell[iRow, iColumn].PutValue("");
多个Workbook组合为一个excel文件:
Aspose.Cells.Workbook pTarBook = new Aspose.Cells.Workbook();
pTarBook.Combine(pWorkBook);
pTarBook.Worksheets.RemoveAt(0);
pTarBook.Save(sSaveFile);