回复 1楼婧友的帖子
三种方法可供参考:
1、通过TitleInfo来实现:
- protected void Page_Load(object sender, EventArgs e)
- {
-
- FpSpread1.TitleInfo.Visible = true;
- FpSpread1.TitleInfo.Text = "固定资产明细统计表(教育部十六大类)";
-
- FpSpread1.Sheets[0].TitleInfo.Visible = true;
- FpSpread1.Sheets[0].TitleInfo.Text = "10类:文物及陈列品,11类:图书,15类:被服装具,16类:牲畜,0413类:交通运输工具";
- FpSpread1.Sheets[0].TitleInfo.HorizontalAlign = HorizontalAlign.Left;
- }
复制代码
2、将文本放到Cell中
- protected void Page_Load(object sender, EventArgs e)
- {
- FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
- sv.DefaultColumnWidth = 200;
- sv.AddSpanCell(0, 0, 1, sv.ColumnCount);
- sv.Cells[0, 0].Value = "固定资产明细统计表(教育部十六大类)";
- sv.AddSpanCell(1, 0, 1, sv.ColumnCount);
- sv.Cells[1, 0].Value = "10类:文物及陈列品,11类:图书,15类:被服装具,16类:牲畜,0413类:交通运输工具";
- }
复制代码
3、放到ColumnHeader中
请参考http://gcdn.grapecity.com/showtopic-4865.html中4楼的代码 |