日期:2014-05-17 浏览次数:20803 次
//合并
CellRangeAddress region = new CellRangeAddress(4个参数,好比坐标一样);
sheet.addMergedRegion(region);
//拷贝样式
HSSFCell sourceCell
sourceCell = sourceRow.getCell( );
//sourceCell 原来的 cell ,targetCell 现在的cell
targetCell.setCellStyle(sourceCell.getCellStyle());
targetCell.setCellType(sourceCell.getCellType());