Hi!! this is my problem, I hope you can help me:

I have a cell with a style and a data format (for example, italic and
percent format)

This is used as a template, so I have to copy it to another cell. I do it
with this:

        HSSFRow rowSource = sheet.getRow(1);
        HSSFRow rowDest = sheet.getRow(3);
        HSSFCell cellSource = rowSource.getCell((short)3);
        HSSFCell cellDest = rowDest.getCell((short)3);                
                        
        cellDest.setCellStyle(cellSource.getCellStyle());

The problem is, that the Italic style is copied, but the percent format is
not applied until I select the dest cell and press enter... 

Is there something wrong or am I missing something? thanks for your help!
:handshake:          
       
-- 
View this message in context: 
http://www.nabble.com/Problem-with-formats-and-styles-tp18266689p18266689.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