poi 导出excel 中合并单元格
参数说明
CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol)
CellRangeAddress(起始行号,终止行号, 起始列号,终止列号).
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 6));
参数说明
CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol)
CellRangeAddress(起始行号,终止行号, 起始列号,终止列号).
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 6));