poi 导出excel 中合并单元格

参数说明

CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol)

CellRangeAddress(起始行号,终止行号, 起始列号,终止列号). 

 

 

sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 6));

 

posted @ 2018-01-10 16:15  he0xff  阅读(221)  评论(0编辑  收藏  举报