java poi 合并单元格后边框问题
在项目中用poi合并单元格,但发现边框会有不显示的问题。
在网上搜集了答案,来记录一下。
解决方法:
将每个没用到的单元格都设空值。
例如:
HSSFCell cell = row.createCell(col); cell.setCellStyle(cellStyle); cell.setCellType(HSSFCell.ENCODING_UTF_16); cell.setCellValue(new HSSFRichTextString(""));
Don’t hurry say have no choice, perhaps, next intersection will meet hope.