Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting Range Protection in Excel File using Jakarta POI

 
Manasa Daggubati
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi you said... I am able to set password protection for the whole sheet.
can you share that code...

[ UD: Please UseTheForumNotEmail ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HSSFSheet class has methods to protect a sheet. Search its javadocs for "password".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic