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
Post a Comment