找回密码
 立即注册

QQ登录

只需一步,快速开始

xiaopanghai

中级会员

3

主题

5

帖子

625

积分

中级会员

积分
625

活字格认证

最新发帖
xiaopanghai
中级会员   /  发表于:2012-8-11 11:49  /   查看:4884  /  回复:1
ini文件读取一字符串,作为FpSpread的某一列的Title,如何两行显示?

例如:ini的值是:"123456",ColumonHeaderRowCount设置为2行,不能两行显示.

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2012-8-13 14:18:00
沙发
回复 1楼xiaopanghai的帖子

你好,请使用下面代码测试:

  1. protected void Page_Load(object sender, EventArgs e)
  2.         {
  3.             if (IsPostBack)
  4.             {
  5.                 return;
  6.             }
  7.             FarPoint.Web.Spread.TextCellType textType = new FarPoint.Web.Spread.TextCellType();
  8.             textType.Multiline = true;
  9.             textType.AllowWrap = true;
  10.             this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].CellType = textType;
  11.             this.FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].Text= "换行\n范德萨发大水发达省份";
  12.         }
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部