O'Reilly logo

JasperReports 3.5 for Java Developers by David Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating the report

In JasperReports lingo, the process of generating a report from a report template or jasper file is known as filling the report. Reports are filled programmatically by calling the fillReportToFile() method in the net.sf.jasperreports.engine.JasperFillManager class. The fillReportToFile() method fills a report and saves it to disk.

There are six overloaded versions of the fillReportToFile() method, which are listed below:

  1. JasperFillManager.fillReportToFile( JasperReport jasperReport, String destFileName, Map parameters, Connection connection )
  2. JasperFillManager.fillReportToFile( JasperReport jasperReport, String destFileName, Map parameters, JRDataSource dataSource )
  3. JasperFillManager.fillReportToFile( String sourceFileName, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required