title: Password protected xls file using DynamicReports in Java
body: <p>I am trying to generate a password protected xls file using <em>DynamicReports 4.1</em> which is internally using <em>JasperReports 6</em>.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>JasperXlsExporterBuilder xlsBuilder = export
                      .xlsExporter(report);
              if (null != password) {
                  xlsBuilder.setPassword(password);
              }
  </code></pre>
  
  <p>Problem is that it created only readonly protected file. Password is not asked for opening the file. I have tried with Apache POI as well, same thing would happen (as JasperXlsExporter using Apache POI only I guess). I have a requirement of open protected xls and not read only protection. </p>
  
  <p>Is this achievable?</p>