Programming using the BIRT Reporting APIs : Programming the structure of a report design : Using a report item in a report design : How to change a simple property of a report item
 
How to change a simple property of a report item
The code sample in Listing 12‑19 uses a method on LabelHandle to change the text in a label. The variable, design, is a ReportDesignHandle object. This sample accesses the label by name. Alternatively, access a report item by navigating the report structure.
Listing 12‑19 Changing the text property of a label report item
// Access the label by name.
LabelHandle headerLabel = ( LabelHandle ) design.findElement( "Header Label" );
try {
headerLabel.setText( "Updated " + headerLabel.getText( ));
} catch ( Exception e ) {
// Handle the exception
}