Using BIRT with Lycia: Your very first examples

 

In this chapter, you find two most basic examples which will illustrate how BIRT report engine can be successfully incorporated and supplement your 4gl-based applications.

 

Create the 4gl code which will

 

import JAVA classes;

define the necessary variables;

create the object which will store the report;

initialize the template for a future report;

run and render the report;

set report parameters;

create the output file;

create the report itself;

shutdown the report engine.

 

Create and style the future report by

 

creating a file of the future report;

setting the data source;

specifying the data sets;

setting the necessary parameters;

styling the report.

 

Build and compile the program in the usual way:

 

 

Run the application and enjoy your report:

 

without parameters:

 

 

with parameters: