wood burning stoves*
The moose likes Java in General and the fly likes Setting Range Protection in Excel File using Jakarta POI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Setting Range Protection in Excel File using Jakarta POI" Watch "Setting Range Protection in Excel File using Jakarta POI" New topic
Author

Setting Range Protection in Excel File using Jakarta POI

Manasa Daggubati
Greenhorn

Joined: Jul 07, 2009
Posts: 1
I am using Jakarta HSSF POI to create an excel file in Java. I am able to set password protection for the whole sheet.

But I need to set it only for a few columns and the others should be editable.

I checked in Excel and there is an option "Allow Users to Edit Ranges".

Is this feature available in Jakarta or are there any other APIs that have this feature.

Please Help.

Thanks
M
ram prasad A
Greenhorn

Joined: Jul 22, 2009
Posts: 1
hi you said... I am able to set password protection for the whole sheet.
can you share that code...

[ UD: Please UseTheForumNotEmail ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
The HSSFSheet class has methods to protect a sheet. Search its javadocs for "password".


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting Range Protection in Excel File using Jakarta POI