jmbernal Posted December 4, 2006 Share Posted December 4, 2006 How can I configure IReports 1.2.4 to generate a xls File protected against content alterations?Now, I'm generating the xls document, but user can write on it, and I don't like it. Link to comment Share on other sites More sharing options...
jmbernal Posted December 15, 2006 Author Share Posted December 15, 2006 Nobody knows how to do this??? I suposse it can't be very difficult, but I have no idea..... Help, help....:( Link to comment Share on other sites More sharing options...
marianol Posted October 3, 2012 Share Posted October 3, 2012 I have not used JR 1.x but in the 4.x versions you can set the following property:xlsExporter.setParameter(JRXlsExporterParameter.PASSWORD, "MyPassword");to protect the spreadsheet, I'm pretty sure that this property was added in v3 The property is only available in xml mode and not supported by iReport GUI To include the password protection you have to go to XML mode and add the following to your JRXML file:<property name="net.sf.jasperreports.export.xls.password" value="MyPassword"/>Mariano 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