Previous Next

Using JavaScript to Write an Event Handler : Determining method execution sequence : Providing the ReportDesign.initialize code

Providing the ReportDesign.initialize code

The following code in the ReportDesign.initialize method creates a file on your hard drive and adds one line to the file.

importPackage( Packages.java.io );
fos = new java.io.FileOutputStream( "c:\\logFile.txt" );
printWriter = new java.io.PrintWriter( fos );
printWriter.println( "ReportDesign.initialize" );

The preceding code performs the following tasks:

n
n
n

How to provide code for the ReportDesign.initialize method

You can provide code for the ReportDesign.initialize method by performing the following steps:

1
2
3

Figure 23-2 Selecting the report design

Figure 23-2
4
5

The BIRT Report Designer appears, as shown in Figure 23‑3.

Figure 23-3 Providing ReportDesign.initialize code

Figure 23-3

(c) Copyright Actuate Corporation 2008