title: How to display DynamicReports in browser without download to cliend drive?
body: <p>I have to display some reports with <strong>Dynamic Reports</strong>. I use NetBeans and Tomcat 7. Eventually, all must be uploaded to cloud OpenShift. I used <strong>DynamicReports</strong> to create simple report (code snippet):</p>
  
  <pre><code>    Connection conn=null;
      try {
      Class.forName(DBConnStrings.driver);
      conn = DriverManager.getConnection(DBConnStrings.url + DBConnStrings.dbName+DBConnStrings.sslState, DBConnStrings.userName, DBConnStrings.password);
      } catch (Exception e) {
          e.printStackTrace();
  
      }
      JasperReportBuilder report = DynamicReports.report();
      report
              .columns(
                      Columns.column("Tank Id", "id", DataTypes.integerType()),
                      Columns.column("Tank Name", "name", DataTypes.stringType()),
                      Columns.column("Label", "label", DataTypes.stringType()),
                      Columns.column("Description", "descrshort", DataTypes.stringType()));
      report.setDataSource("SELECT id, name, label, descrshort  FROM "+ DBConnStrings.dbName +".tbltankslist", conn);
  
      try {
              //show the report
      //report.show();
  
              //export the report to a pdf file
      report.toPdf(new FileOutputStream("c:/report.pdf"));
  } catch (DRException e) {
      e.printStackTrace();
  } catch (FileNotFoundException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>This code located in a Servlet. It works. I get JasperViewer at first and a report.pdf on my HDD. But I don't want it. First I do not want to see JasperViewer, second I do not want to download file to client HDD. How to display report inside web-browser only?</p>
  
  <p><a href="https://stackoverflow.com/questions/3746649/jasperreports-how-to-call-the-report-in-jsp-page">Here is the question Jasper Reports.</a> It is about jasper reports + iReport and I have no idea how to use that information for DynamicReports - at first, second there is also "download pdf to client drive" approach, but I need to show it inside the browser.</p>