回复 1楼Julie_Zhao的帖子
你好,我使用以下代码没能重现问题,能否发个 Demo 到论坛调试?
- public partial class WebForm1 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.TextCellType t = new FarPoint.Web.Spread.TextCellType();
- string s = "测试测试测试测试测试测试测\r\n测试测试测试测试测试测试测";
- t.Multiline = true;
- t.AllowWrap = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = t;
- FpSpread1.ActiveSheetView.SetText(0, 0, s);
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- this.FpSpread1.SaveExcelToResponse(Server.UrlEncode("社会子.xls"), FarPoint.Excel.ExcelSaveFlags.AutoRowHeight);
- }
复制代码 |