Creating reports with JasperReports

EGL uses the JasperReports framework to create reports in several formats, including PDF, HTML, comma-separated values, and plain text.
To create and export a report using the JasperReports framework in EGL, follow these general steps:
  1. Create and compile a JasperReports report design file. See Creating the JasperReport design file.
  2. Write a report driver program. See Writing code to drive a report of type JasperReport.
  3. Optionally, create a report handler with additional functions that are called by the report design file. See Creating an EGL JasperReport handler.
  4. Generate the project and run the report driver program. See Running a report of type JasperReport

EGL does not require that you perform these tasks in a particular order, but you must be aware of dependencies between the files. For example, if your report design file calls functions in the report handler, you must write and generate the report handler first and then compile the report design file. EGL compiles the report design file each time you save a change to the report design file, or you can direct EGL to compile the report design file by clicking Project > Clean > Clean all projects.

EGL does not automatically refresh exported reports. If you change the report design or if the data used in the report changes, you must run the report driver program again.


Feedback