poi :合并excel的单元格
程序员文章站
2022-06-14 09:07:54
...
// 合并单元格 从左上角合并到右下角
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();
Region region = new Region(6, (short) 2, 7, (short) 3);
sheet.addMergedRegion(region);
上一篇: POI 合并单元格
下一篇: poi excel 如何合并单元格?