当前位置: 代码迷 >> J2SE >> poi 导出excel 如何让单元格长点 能包裹这一个cell所有的字
  详细解决方案

poi 导出excel 如何让单元格长点 能包裹这一个cell所有的字

热度:30   发布时间:2016-04-23 21:03:06.0
poi 导出excel 怎么让单元格长点 能包裹这一个cell所有的字
如题目  求大神们解答啊 小弟不胜感激
------解决方案--------------------
public void setColumnWidth(int columnIndex,
                  int width)

Specified by:
setColumnWidth in interface Sheet
Parameters:
columnIndex - - the column to set (0-based)
width - - the width in units of 1/256th of a character width
Throws:
java.lang.IllegalArgumentException - if width > 255*256 (the maximum column width in Excel is 255 characters)
  相关解决方案