wood burning stoves 2.0*
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
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: 39549
    
  27
The HSSFSheet class has methods to protect a sheet. Search its javadocs for "password".


Ping & DNS - updated with new look and Ping home screen widget
 
jQuery in Action, 2nd edition
 
subject: Setting Range Protection in Excel File using Jakarta POI
 
Similar Threads
Restricting special characters while writing to excel
excel charts
Create Spreadsheet
xml to ms word
Saving data to Excel files