赞
踩
CellRangeAddress cellRangeAddress = new CellRangeAddress(startRow, endRow, startCell, endCell);
sheet.addMergedRegionUnsafe(cellRangeAddress);
}
譬如:
合并行时
CellRangeAddress cellRangeAddress = new CellRangeAddress(0, 2, 0, 0);
sheet.addMergedRegionUnsafe(cellRangeAddress);
}
合并列时
CellRangeAddress cellRangeAddress = new CellRangeAddress(0, 0, 0, 2);
sheet.addMergedRegionUnsafe(cellRangeAddress);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。