POI中的单元格合并
CellRangeAddress cellrange = new CellRangeAddress(firstRow, lastRow, firshCol, lastCol);
sheet.addMergeRegion(cellrange);
参数说明: 从0开始
int firstRow: 起始行号
int lastRow: 终止行号
int firstCol: 起始列号
int lastCol: 终止列号
CellRangeAddress cellrange = new CellRangeAddress(firstRow, lastRow, firshCol, lastCol);
sheet.addMergeRegion(cellrange);
参数说明: 从0开始
int firstRow: 起始行号
int lastRow: 终止行号
int firstCol: 起始列号
int lastCol: 终止列号