On Wed, 21 Sep 2011, Helfi wrote:
So I want to extract the CellStyle of the title line and apply it on the new
created one.
*.xls -> *.xls and *.xlsx -> *.xlsx is working fine.
But I got trouble by trying to apply the extracted CellStyle of a HSSF
Sheet on a XSSF Sheet. Is there any solve for this problem?
Alas you'll need to do the work yourself. cloneStyleFrom does some low
level bits which only work between the same filetype, so it's not able to
help. Instead, you'll want to iterate through the common properties that
interest you, and set the value on the new style as taken from the old
one.
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]