您号请参考以下代码
- FpSpread1.ActiveSheetView.ColumnFooter.Visible = true;
- FpSpread1.ActiveSheetView.ColumnFooter.RowCount = 2;
- this.FpSpread1.ActiveSheetView.Columns[1].AggregationType = FarPoint.Web.Spread.Model.AggregationType.Sum;
- this.FpSpread1.ActiveSheetView.ColumnFooter.Cells[0, 1].Value = "Sum";
- this.FpSpread1.ActiveSheetView.ColumnFooter.Cells[1, 1].Value = "Sum:[{0}]";
复制代码 |