title: JasperReport, show and print report
body: <p>I exported a .jrprint file created with iReport.
  Now I want to preview the report and finally print it, how can I do this?</p>
  
  <p>I'm trying with:</p>
  
  <pre><code>JRBeanCollectionDataSource ds=new JRBeanCollectionDataSource(list);
  JasperPrint jrprint=JasperFillManager.fillReport("report.jrprint", null, ds);
  </code></pre>
  
  <p>But I have this exception</p>
  
  <pre><code>java.lang.ClassCastException: net.sf.jasperreports.engine.JasperPrint cannot be cast to net.sf.jasperreports.engine.JasperReport
  </code></pre>