参数说明
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));
转载于:https://www.cnblogs.com/he0xff/p/8259225.html