回复 7楼zhou_sir的帖子
好的,感谢配合,试试以下代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- return;
- this.FpSpread1.SheetCorner.Cells[0, 0].Text = "项目名称";
- this.FpSpread1.SheetCorner.Cells[0, 0].RowSpan = 3;
- this.FpSpread1.SheetCorner.Cells[0, 0].ColumnSpan = 3;
- this.FpSpread1.Sheets[0].ColumnHeader.RowCount = 3;
- this.FpSpread1.Sheets[0].RowHeader.ColumnCount= 3;
- this.FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(0, 0, 2, 2);
- }
复制代码 |