回复 15楼tingche的帖子
恩,这个问题刚才正在处理中。请测试以下代码:
- //C#
- FarPoint.Web.Spread.TextCellType tcell = new FarPoint.Web.Spread.TextCellType();
- string Str;
- Str = "12345645645645645645456456456555555555555555555";
- tcell.ShowEditor = true;
- tcell.AllowWrap = true;
- tcell.Multiline = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = tcell;
- FpSpread1.ActiveSheetView.SetValue(0, 0, Str);
- //VB.NET
- Dim tcell As New FarPoint.Web.Spread.TextCellType()
- Dim Str As String
- Str="12345645645645645645456456456555555555555555555"
- tcell.AllowWrap=True
- tcell.ShowEditor = True
- tcell.Multiline = True
- FpSpread1.ActiveSheetView.Cells(0,0).CellType=tcell
- FpSpread1.ActiveSheetView.SetValue(0,0,Str)
复制代码 |