Hi Everyone,

 

I was wondering if the cell style created from one work book and be used
in other work book. Refer the code below.

 

HSSFWorkbook wb1 = new HSSFWorkbook();

HSSFWorkbook wb2 = new HSSFWorkbook();

HSSFCellStyle style = wb1.createCellStyle();

//Apply some style by changing font, color, etc

//Later on wb1 is recycled/destroyed/null'd

 

Now can I apply the style on any cell of wb2? 

 

Thanks,

Dilip

Reply via email to