java - How to give password to protect xlsx sheet using apache poi? -


sheet1.protectsheet("xxxx");

actually tried above code, protecting sheet editing, while enable editing not ask password, how protect password?

read apache poi - encryption support paragraph xml-based formats - encryption. comes source code example. see http://poi.apache.org/encryption.html


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -