Jump to content
We've recently updated our Privacy Statement, available here ×

ojvm24

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by ojvm24

  1. Hi, I recommend you pass those values as a param to the report, so you must calculate BEFORE calling the report, let´s say you have a list of items, iterate over the list make the sum, and store it in a variable, then add it as a param, "amount", this variable must be added to the report. BigDecimal total = BigDecimal.ZERO; for( Item i : items){ total = total.add( i.amount); } Map<String, Object> param : new HashMap<>(); param.put("amount", total); final JasperPrint print = JasperFillManager.fillReport(report, param, source); // Export the report to a PDF file. JasperExportManager.exportReportToPdfStream(print, out);
×
×
  • Create New...