Hello,

I’m working with this JAR : poi-2.5.1-final-20040804.jar

My problem is about reading a HSSFCell and loosing the border.

We have a HSSFRow.
I’m getting the value for a HSSFCell from a HSSFRow, with this method:
oneCell = oneRow.getCell((short) cellNb);
For both cases (describe after), there is a border on the specified cell:

1)Case "there is a value in the cell" and a border:

-> "oneRow.getCell((short) cellNb)" return a HSSFCell object, after I can
set an other value
-> the value has a border

2)Case "there is no value in the cell" and a border:

-> "oneRow.getCell((short) cellNb)" return null,
-> I have to create a HSSFCell (oneCell = oneRow.createCell((short)
cellNb)) to set the value
-> I have lost the border.

Do you know if I’m using the API in a wrong way, or maybe the I can get
the Style of a HSSFCell somewhere?

Thanx in advanced.

Benjamin CHALLAMEL


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to