- protected void Page_Load(object sender, EventArgs e)
- {
- FarPoint.Web.Spread.GeneralCellType gct = new FarPoint.Web.Spread.GeneralCellType();
- gct.AllowWrap = false;
- gct.Multiline = false;
- //this.FpSpread1.ActiveSheetView.Columns[0].CellType = gct;
- this.FpSpread1.ActiveSheetView.Cells[0, 0].Value = "测试文本不能超长,不然就要换行。";
- this.FpSpread1.ActiveSheetView.DefaultStyle.CellType = gct;
- }
复制代码 |