When you are talking about 'styles' are you referring here to Excel's styles 
where it is possible to establish a number of formatting options and then 
associate a name with this?

--- On Thu, 6/12/08, Axel Rose <[EMAIL PROTECTED]> wrote:
From: Axel Rose <[EMAIL PROTECTED]>
Subject: Distinguishing default cell style
To: "POI Users List" <[email protected]>
Date: Thursday, June 12, 2008, 7:41 AM

Hello all,

when importing Excel files is there a way to check whether a cell was
formatted using a style?

When looping through all cells and doing

  // opening HSSFWorkbook "wb"
  // retrieving HSSFCell "cell"
  // ...
  HSSFCellStyle cellStyle = cell.getCellStyle();
  wb.getCellStyleAt(cellStyle.getIndex());

I just always get some cell style. Currently I cannot see if this is just
the default cell style.

Is there a way to get the name of the cell style as shown in the client app?


Thanks for your help,
Axel.


      

Reply via email to