Simply keep the cell style in one or more variables and reuse the same
instance on subsequent cells.
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFCell.html#getCellStyle()
Karr, David wrote:
Is it possible to "clone" an existing row, at least to copy the cell
formats? I have one "template" row at the top of an existing
spreadsheet, and I have to create each succeeding row with the same
format as the first row. I did this initially by just (in Excel)
copying the empty (although with formats) row to many rows, but if the
number of actual rows goes past that, then it has the wrong formats. I
could just (in Excel) copy the row to more rows in the template, but
that seems like an odd way to resolve this.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]