//开始行,结束行,开始列,结束列
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 3));
HSSFRow row = sheet.createRow(0);
HSSFCell cellHeader;
cellHeader = row.createCell(0);
//cellHeader.setCellStyle(style);
cellHeader.setCellValue("标题...");
//开始行,结束行,开始列,结束列
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 3));
HSSFRow row = sheet.createRow(0);
HSSFCell cellHeader;
cellHeader = row.createCell(0);
//cellHeader.setCellStyle(style);
cellHeader.setCellValue("标题...");
有建议,请留言!