poi报表问题?
CellStyle headerCellStyle = workbook.createCellStyle();
headerCellStyle.setFillBackgroundColor(HSSFColor.RED.index); //背景色
headerCellStyle.setBorderRight((short)1);//设置右边框大小
Row row = sheet.createRow(0);//创建第一行 列头
Cell cell1=row.createCell(0);
cell1.setCellValue("学号");//创建第一行第一个单元格
cell1.setCellStyle(headerCellStyle);
Cell cell2=row.createCell(1);
cell2.setCellValue("姓名");//创建第一行第二个单元格
cell2.setCellStyle(headerCellStyle);
为什么背景色没有效果呢?
其他都有效果