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

xiaoxiao2021-02-28  117

代码:

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

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

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

转载请注明原文地址: https://www.6miu.com/read-48613.html

最新回复(0)