摘要:
一、利用POI生成Excel强制换行1. 首先在需要强制换行的单元格里使用poi的样式,并且把样式设定为自动换行 # HSSFCellStyle cellStyle=workbook.createCellStyle(); # cellStyle.setWrapText(true); # cell.setCellStyle(cellStyle);2. 其次是在需要强制换行的单元格,使用\就可以实再强制换行 1. HSSFCell cell = row.createCell((short)0); 2. cell.setCellStyle(cellStyle); cell.setCellValue( 阅读全文