回复 5楼study1990的帖子
study1990 你好,
可以在导出之前设置 row 高,导出之后还原为原高度:
- protected void Button1_Click(object sender, EventArgs e)
- {
- int rowHeight=this.FpSpread1.Sheets[0].Rows[0].Height;
- this.FpSpread1.Sheets[0].Rows[0].Height = 100;
- this.FpSpread1.SaveExcel("");
- this.FpSpread1.Sheets[0].Rows[0].Height = rowHeight;
- }
复制代码 |