thanks again for helping me.  This may seem like a stupid question but how do
i get the svn checkout so i can view you clone method?

many thanks
mark



Nick Burch wrote:
> 
> On Fri, 11 Jul 2008, mjw_85uk wrote:
>> I may have come up with a solution myself. It is to get the cellStyle 
>> from the cellthat is being copied over.  Check to see if the style 
>> exists in the new workbook the cell is being copied to.  If it does 
>> exists thenapply that to the new cell and if id doesn't exist add it to 
>> the style table and then apply it to the newly created cell. Do you 
>> think that would work?
> 
> That will work, yes. To make your life easier, if you grab a recent svn 
> checkout / nightly build from tonight on, you'll find a new method on 
> HSSFCellStyle. The cloneStyleFrom(HSSFCellStyle base) method will copy all 
> the style properties from one HSSFCellStyle onto another, and handle all 
> the tricky bits if they happen to belong to different HSSFWorkbooks
> 
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HSSFCellStyle-help-tp18401553p18428659.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to