title: Using JasperViewer: export to pdf and Excel not working
body: <p>I am new to <em>DynamicReports</em>. I am currently working on one report using this framework and I am able to display the report data properly in JasperViewer. But when I try to save the data from JasperViewer in pdf or xls format I am facing some issues:</p>
  
  <ul>
  <li>Adobe is complaining that file it is not a supported file or file name is damaged. </li>
  <li>Excel is saying that extension does not match, I understand that this could be because I have xlsx in my machine and trying to open a file with xls extension. </li>
  </ul>
  
  <p>1 - How to fix the pdf issue?<br>
  2 - How to save file in xlsx format ?  </p>
  
  <p>Any help is much appreciated.</p>
  
  <p>Below is my code :  </p>
  
  <pre><code>JRDataSource dataSource = new JRBeanCollectionDataSource(list);
  JasperReportBuilder report = DynamicReports.report();
  report.columns(Columns.column("Column 1", "column", DataTypes.stringType()))
  .title(Components.text("Title")
  .setHorizontalAlignment(HorizontalAlignment.CENTER))
  .pageFooter(Components.pageXofY())
  .setDataSource(dataSource)
  .show(false);
  </code></pre>