我试了一个简单的 case ,是好的呀,你能提供一个重现问题的 sample吗?
调 sheet.recalcAll() 能解决问题吗?
-
- sheet.setFormula(1, 1, "a1+2");
- sheet.setValue(1, 0, 1);
- sheet.setValue(2, 0, 2);
- sheet.addRows(2, 2);
- var startRowRange = new GcSpread.Sheets.Range(1, 1, 1, 3);
- var fillRowRange = new GcSpread.Sheets.Range(2, 1, 2, 3);
- var dragFillExtent = {
- startRange: startRowRange,
- fillRange: fillRowRange,
- autoFillType: GcSpread.Sheets.AutoFillType.CopyCells,
- fillDirection: GcSpread.Sheets.FillDirection.Down
- };
- var fillAction = new GcSpread.Sheets.UndoRedo.DragFillUndoAction(sheet, dragFillExtent);
- fillAction.execute(sheet);
复制代码 |