title: JasperReport with spring MVC : print report on client side without displaying it
body: <p>I am developping a Spring MVC - Angularjs application.<br>
  I need to print reports, I chose JasperReport to do that.  </p>
  
  <p>Before I move on, I want to know if I can generate a report, then directly print it on the default printer set up on the client computer (printer which can change according to users) <strong>without displaying</strong> it on screen.<br>
  I have been looking for answers on this specific need, but couldn't find any.</p>
  
  <p>If anyone knows about it....   </p>
  
  <p>Source to generate report and print it:</p>
  
  <pre><code>HashMap&lt;String, Object&gt; params = new HashMap&lt;String, Object&gt;(); 
  params.put("Title", "My Report");
  
  InputStream reportStream = this.getClass().getResourceAsStream(TEMPLATE); 
  JasperDesign jd = JRXmlLoader.load(reportStream);
  JasperReport jr = JasperCompileManager.compileReport(jd);
  JasperPrint jp = JasperFillManager.fillReport(jr, params, datasource.getDataSource());
  
  JasperPrintManager.printReport(jp, false);
  </code></pre>