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:
JasperFillManager.fillReportToFile(JasperReport jasperReport, String destFileName, Map parameters, Connection connection)
JasperFillManager.fillReportToFile(JasperReport jasperReport, String destFileName, Map parameters, JRDataSource datasource)
JasperFillManager.fillReportToFile(String sourceFileName, Map parameters, Connection connection)
JasperFillManager.fillReportToFile(String sourceFileName, Map parameters, JRDatasource dataSource)
JasperFillManager.fillReportToFile(String sourceFileName, String destFileName, Map parameters, Connection connection...