Java使用POI操做Excel合併單元格

合併單元格的方法: 指定 4 個參數,起始行,結束行,起始列,結束列。而後這個區域將被合併。java CellRangeAddress region = new CellRangeAddress(startRow, endRow, startCol, endCol); sheet.addMergedRegion(region); 合併的簡單示例:web public class TestExcel
相關文章
相關標籤/搜索