JasperReports

EGL can produce reports based on the JasperReports open source, Java-based reporting library. For information about that library, go to:

http://jasperforge.org/sf/projects/jasperreports

EGL does not provide a mechanism for report layout. To generate a report layout you must use one of the following methods:
The EGL report driver (which you write to drive report production) identifies the JasperReports design file (extension jasper) and relies on that design file for a number of formatting definitions:

XML report design documents expect Java™ data types. See Mapping EGL primitives to Java.

At run time, your EGL report driver sets up basic parameters, then transfers control to the JasperReports engine. The JasperReports engine creates an intermediate file called the destination file (extension jrprint) and fills this file with report data. Based on the specifications in the report driver, the JasperReports engine then transforms the destination file into a different format. This operation is called exporting. Exported file formats can be .pdf, .html, .xml, .txt, and/or .csv.

If you also code an EGL JasperReport handler, the finished report can reflect events that occurred as your EGL report driver filled the report with data. For example, you can produce dynamic report content by comparing report subtotals with outside information like commission structures or insurance reimbursements.

When you write EGL code that interacts with a report, you also perform the following actions:

Feedback