https://issues.apache.org/bugzilla/show_bug.cgi?id=47582
Summary: XSSFCellStyle.cloneStyleFrom not replicating all the
style attributes
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
XSSFCellStyle.cloneStyleFrom fails to reproduce the data format and the font
and possibly other style attributes.
To copy the data format, you need to get the data format string from the source
style and use an XSSFDataFormat instance to obtain a data format index valid in
the target style's workbook. Similar legerdemain is required to handle the
font. You have to ask the target style's workbook if it has a font with the
same properties as the source style's font and create a new one if it doesn't.
I didn't investigate cloneStyleFrom's performance with respect to the full
range of attributes, as I adopted a different approach to my problem, which
does not to clone styles across workbooks.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]