回复 4楼victorysoft的帖子
问题一,
可以在后台代码先设计好样式,保存后每次加载模板即可:
- this.FpSpread1.Sheets[0].ColumnHeader.RowCount = 2;
- this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].Text = "列头合并测试";
- this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].ColumnSpan = 2;
- this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].RowSpan = 2;
- this.FpSpread1.Sheets[0].Save(this.Server.MapPath("template.xml"),false);
复制代码
- this.FpSpread1.Open(this.Server.MapPath("template.xml"));
复制代码 |