FlexCel 插入公式和插入新行
//http://www.tmssoftware.biz/flexcel/doc/vcl/api/FlexCel.Core/TExcelFile/InsertAndCopyRange.html#texcelfileinsertandcopyrangetxlscellrange-integer-integer-integer-tflxinsertmode //http://www.tmssoftware.biz/flexcel/doc/vcl/api/FlexCel.Core/TFlxInsertMode.html xls.InsertAndCopyRange(new TXlsCellRange(10, 1, 10, 9), 11, 1, 1, TFlxInsertMode.ShiftRowDown); //插入公式 xls.SetCellValue(10, 3, new TFormula("=Sum(D9:D20)"));