poi :合并excel的单元格

// 合并单元格 从左上角合并到右下角
                HSSFWorkbook wb = new HSSFWorkbook();
                HSSFSheet sheet = wb.createSheet();
		Region region = new Region(6, (short) 2, 7, (short) 3);
		sheet.addMergedRegion(region);
 

你可能感兴趣的:(poi,Excel)