Summary: | CellUtil.setCellStyleProperties erases foreground and background fill colors | ||
---|---|---|---|
Product: | POI | Reporter: | Javen O'Neal <onealj> |
Component: | SS Common | Assignee: | POI Developers List <dev> |
Status: | RESOLVED CLOSED | ||
Severity: | normal | CC: | Alexander.Riccio, andersaa, jcwu200, marcin.kruglik, tom.opichal |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Bug Depends on: | 66052 | ||
Bug Blocks: |
Description
Javen O'Neal
2016-05-08 22:35:43 UTC
Did some investigation on this: * CellUtils currently only supports the indexed colors, not the newer full colors * When setting properties via setCellStyleProperties(), internally a new style is created with only indexed colors being copied over * Adding full support would require interface methods for setting/getting full color in class Color, however support for full color in setters in HSSFCellStyle is not available, so this would be needed as well here. I couldn't find a way to vote for this issue so I'll write a comment instead. I have found the exact same problem and would really appreciate if this could be fixed. The best way to get something fixed is to contribute the fix yourself. There are only a small number of active volunteers working on POI. This looks like it is related to https://bz.apache.org/bugzilla/show_bug.cgi?id=66052 - I will close this. Feel to reopen this if https://bz.apache.org/bugzilla/show_bug.cgi?id=66052 does not help. |