On Fri, 29 Aug 2008, gliao wrote:
Does the style including font and color? If it does, why it doen't copy
font and color, even the code already set copyStyle boolean as true? Any
idea.
Styles are specific to just one workbook. I think you'll be wanting this:
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFCellStyle.html#cloneStyleFrom(org.apache.poi.hssf.usermodel.HSSFCellStyle)
"Clones all the style information from another HSSFCellStyle, onto this
one. This HSSFCellStyle will then have all the same properties as the
source, but the two may be edited independently. Any stylings on this
HSSFCellStyle will be lost! The source HSSFCellStyle could be from another
HSSFWorkbook if you like. This allows you to copy styles from one
HSSFWorkbook to another."
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]