回复 1楼xiaopanghai的帖子
你好,请使用下面代码测试:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.TextCellType textType = new FarPoint.Web.Spread.TextCellType();
- textType.Multiline = true;
- textType.AllowWrap = true;
- this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].CellType = textType;
- this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].Text= "换行\n范德萨发大水发达省份";
- }
复制代码 |