poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <n...@torchbox.com>
Subject Re: Cell style for on Workbook used in other.
Date Thu, 16 Apr 2009 09:16:06 GMT
On Wed, 15 Apr 2009, Maurya, Dilip wrote:
> I was wondering if the cell style created from one work book and be used
> in other work book.

Not directly - a cell style holds all its details in the records stored in 
one workbook, so can't be applied to another. Instead, set your first cell 
style up as you want it to be, then create one on the 2nd workbook and 
clone it over.

HSSFCellStyle.cloneStyleFrom is the method you'll want

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message