Hi,
I am using Silk 4J and for reporting trying to set Excel Background/foreground color, based on the result. I tried the below code but unable to set color. Could someone please help me with this?
XSSFCellStyle style = (XSSFCellStyle) workbook.createCellStyle();
style=(XSSFCellStyle) workbook.createCellStyle();
XSSFColor color=new XSSFColor(new java.awt.Color(0, 73,144));
style.setFillBackgroundColor(color);
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
reportRow.createCell(2).setCellStyle(style);
-Alice