问题是这样的
我后台查出的数据中有\r\n,然后有设置wrapText属性(HSSFCellStyle.setWrapText(true))对非合并的单元格,是可以换行的,是有效果的,但是针对合并后的单元格,换是换行了,但高度没有自适应调高?
------解决方案--------------------

帮顶一下
------解决方案--------------------
1。操作结合cell的话,应该是要操作结合cell的吧,也就是左上角那个cell
2。自动调高度
public void autoSizeColumn(int column,
boolean useMergedCells)
Parameters:
column - the column index
useMergedCells - whether to use the contents of merged cells when calculating the width of the column
第2个参数
------解决方案--------------------
1。操作结合cell的话,应该是要操作结合cell的第一个cell的吧,也就是左上角那个cell