https://bz.apache.org/bugzilla/show_bug.cgi?id=60902

--- Comment #8 from Mark Murphy <[email protected]> ---
(In reply to dollinger.florian from comment #6)
> The main problem with CellUtil.setCellStyleProperties is that it is nearly
> useless (at least in my case) for XSSF workbooks - since only indexed colors
> are copied, no fonts, and so on (see bug 60895).
> I will try to fix that someday but for now I think 
> Workbook.cloneCellStyle() is not a bad idea?!

setCellStyleProperties() doesn't copy anything. You have to put the properties
you want in the map. that can include fonts if you choose. It does not handle
colors other than indexed colors though, but that is due to the fact that HSSF
only supports indexed colors, and CellUtil.setCellStyleProperties is part of
the converged interface. POI would be better served if you found a way to
handle the XSSF color differences in the converged interface rather than create
a whole new set of methods. Probably need a way to convert themed colors to
indexed colors if the user tries to use themed colors with an HSSF sheet. Other
than themed colors, CellUtil.setStyleProperties() supports all the CellStyle
attributes for XSSF.

-- 
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]

Reply via email to