1.
FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 0].VerticalAlign = VerticalAlign.Middle;
FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 0].HorizontalAlign = HorizontalAlign.Center;
2. spread 没有单页合计的功能,全部数据合计是有的
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}]"; |