javaweb项目 基于poi的excel导出 合并单元格

代码:

sheet.addMergedRegion(new CellRangeAddress(firstRow, lastRow, firstCol, lastCol));

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

参数:起始行号,终止行号, 起始列号,终止列号

猜你喜欢

转载自blog.csdn.net/ampsycho/article/details/77750340