mbritton Posted April 25, 2011 Share Posted April 25, 2011 Hi all, I am trying to figure out how to set a report so that when it's scheduled by Jasperserver to run overnight, it gets emailed as a password-protected .xls or .xlsx doc. Is there any kind of export parameter I can set that will assign a password to a document? Thanks, Matt Link to comment Share on other sites More sharing options...
jpauze Posted April 26, 2011 Share Posted April 26, 2011 Yes, there is a report property you can add which allows you to set the passwordnet.sf.jasperreports.export.xls.passwordDo a google search on it and should find all the information you require, I recall seeing a post on here somewhere related to the same topic but I think it was quite old. Link to comment Share on other sites More sharing options...
mbritton Posted April 26, 2011 Author Share Posted April 26, 2011 Thanks for your relply- from what I've read online, this property only allows you to protect a worksheet- i.e. make it read-only and require a password to make changes. I am looking to password protect the entire document so it can only be opened by those with a password- our reports contain sensitive client info like ssn, dob, etc. Please let me know if I've misunderstood your suggestions.Thanks,Matt Link to comment Share on other sites More sharing options...
jpauze Posted April 26, 2011 Share Posted April 26, 2011 You didn't misunderstand, I was under the impression that the password property also controlled password encryption which it clearly doesn't (after I actually tried it) I did find a vague reference to possibly using the jExcelAPI to set the encryption password but didn't have much success in finding any specific references. Not sure how fixed you are on Excel output or whether you could switch to PDF output, I know there are properties which allow you to set the password separately for owner and user and use 128-bit encryption. Maybe somebody else has a clue, if not then maybe we should create a feature request for it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now