回复 1楼SnailRun的帖子
请问不好用指的是没有自动计算还是?我使用以下代码测试前台可以自动计算:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- this.FpSpread1.ActiveSheetView.Cells[0, 0].Value = 1;
- this.FpSpread1.ActiveSheetView.Cells[0, 1].Value = 1;
- this.FpSpread1.ActiveSheetView.Cells[0, 2].Formula= "SUM(A1:B1)";
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- this.FpSpread1.ClientAutoCalculation = true;
- this.FpSpread1.Sheets[0].AutoCalculation = true;
- }
复制代码 |