You
must have the following files in the specified locations:
- You will need a compiled JasperReports design file (extension jasper)
somewhere on your system (you specify the location in your report driver).
For more information, see Creating the report design file.
- Your EGL report driver source file (extension egl) must be in the
package directory under EGLSource.
- Make sure you have a build descriptor file, probably in the EGLSource
directory. See Generation in the workbench
- If you want a report handler, that source file (extension egl)
must also be in the package directory under EGLSource.
- If your report driver accesses a database, you might need to tell EGL
where to find the appropriate Java™ Database Connectivity (JDBC) driver.
Your might need to add an external Java Archive (JAR) file to your project
properties.
To create and fill a report for an EGL project, follow these steps:
- Build the EGL project by selecting Project > Build All or Project
> Clean. EGL automatically generates Java code from any EGL source files that
have changed since the last build and compiles any changed design document
source files.
- Run the Java program that has the report invocation code. One
way to do this in the Package Explorer is to navigate to and right-click the
.java file that contains the code. Then select Run > Java Application from
the popup menu.
When you create a report, the JasperReports engine first creates an intermediate
destination file (extension jrprint), from which it can create multiple
export files in different formats (.pdf, .html, .xml, .txt, or .csv). You
specify locations for all of these files in the report driver.