|
@@ -412,8 +412,11 @@ public class ExportExcelUtils {
|
|
|
|
|
|
//有效率<媒体考核有效率 (标绿)
|
|
|
XSSFCellStyle style2 = workbook.createCellStyle();
|
|
|
+// style2.setFillForegroundColor(IndexedColors.GREEN.getIndex()); // 设置前景颜色为绿色
|
|
|
+// style2.setFillPattern(FillPatternType.SOLID_FOREGROUND); // 设置背景填充样式
|
|
|
XSSFFont font2 = workbook.createFont();
|
|
|
- font2.setColor(IndexedColors.GREEN.index);
|
|
|
+ font2.setColor(IndexedColors.GREEN.index);// 设置字体颜色为绿色
|
|
|
+ font2.setBold(true);
|
|
|
style2.setFont(font2);
|
|
|
|
|
|
// 产生表格标题行
|