https://bz.apache.org/bugzilla/show_bug.cgi?id=62753
Bug ID: 62753
Summary: Background color is always black for a merged cell
Product: POI
Version: 3.17-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 36159
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36159&action=edit
example of problem
I'm using the following code to set the background color for cells:
XSSFCellStyle cellStyle = (XSSFCellStyle) excelStyle.getCellStyle();
cellStyle.setFillForegroundColor(new XSSFColor(new byte[]{(byte) 14, (byte)
173, (byte) 108}, new DefaultIndexedColorMap()));
cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
But I'm always getting black background for a merged cell.
Also, I've tried this way:
cellStyle.setFillForegroundColor(new
XSSFColor(java.awt.Color.decode("#0ead6c")));
but this same result.
It works only if I'm using IndexedColors like:
cellStyle.setFillForegroundColor(IndexedColors.CORAL.index);
Additional info:
SXSSFWorkbook
poi:3.17
poi-ooxml:3.17
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]