title: The report has no pages in case using JRTableModelDataSource
body: <p>I design a blank report where a static text in <em>Column Header</em> and a text field in <em>Detail</em> band. I want to show this report by reading the value of a <em>jtable</em>. I am successfully run the preview session of <em>iReport</em> but when I run my <em>Java</em> program and hit the preview button it shows the document has no pages. I add my code below:</p>
  
  <pre><code>private void generateReports(String name, Map param) {
      try {
          String source = "src/com/hitechbangla/fctu/wargaming/report/kpireport.jrxml";
          if (new File(source).exists() == false) {
              return;
          }
          JasperReport jasperReport = JasperCompileManager.compileReport(source);
          param.put("kpiName", "something");
          JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, param, new JRTableModelDataSource(jTableKpiResource.getModel()));
          JasperViewer.viewReport(jasperPrint, false);
      } catch (Exception e) {
          System.out.println("reports Error  " + e.toString());
      }
  }
  </code></pre>
  
  <p>Please help me to solve this issue.</p>