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.println( "ReportDesign.initialize" );The preceding code performs the following tasks:
n Creates a PrintWriter object that every method can use to track method execution sequenceHow to provide code for the ReportDesign.initialize method
You can provide code for the ReportDesign.initialize method by performing the following steps:
Figure 23-2
4 In Script, select the Initialize( ) method.The BIRT Report Designer appears, as shown in Figure 23‑3.
Figure 23-3
(c) Copyright Actuate Corporation 2008 |