回复 2楼gsyxy100的帖子
请使用以下代码测试:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.TextCellType t = new FarPoint.Web.Spread.TextCellType();
- string s = "指标A\nKG";
- t.Multiline = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = t;
- FpSpread1.ActiveSheetView.SetText(0, 0, s);
- }
复制代码 |