POI中的单元格合并

CellRangeAddress cellrange = new CellRangeAddress(firstRow, lastRow, firshCol, lastCol);
sheet.addMergeRegion(cellrange);
参数说明: 从0开始
int firstRow: 起始行号

int lastRow: 终止行号

int firstCol: 起始列号

int lastCol: 终止列号

posted @ 2019-10-28 17:52  司霖  阅读(1522)  评论(0编辑  收藏  举报