TextCellType txt = new TextCellType();
txt.ShowEditor = true;
txt.AllowWrap = false;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = txt;
FpSpread1.ActiveSheetView.Cells[0, 1].CellType = txt;
FpSpread1.ActiveSheetView.Cells[0, 2].CellType = txt;
FpSpread1.ClientAutoCalculation = true;
FpSpread1.ActiveSheetView.SetFormula(0, 2, "round(A1-B1,2)");
A1=2
B1=1
C1可以显示为1.00吗? |
|