I use POI 2.5.1. It works fine.
I did 3 things.
1. Create cell style and set lock, see: cellStyle.setLocked(boolean)
2. Set cell style to a cell e.g. cell.setCellStyle(cellStyle);
3. Protect your worksheet e.g. sheet1.setProtect(true);

S K

On 3/28/07, Fulg de Nea <[EMAIL PROTECTED]> wrote:
Hi guys,

I was wondering if it is possible to protect the excel
worksheets.. for example to set some cells not to be
editable. If this can be done, please tell me in which
POI version.

Best regards,
Rodica



____________________________________________________________________________________
Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

---------------------------------------------------------------------
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/



---------------------------------------------------------------------
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