Downloading the code for the extension examples
This guide provides examples for the following types of BIRT extensions:
*Basic report item
The example shows how to build a rotated label report item plug-in and add the report item to BIRT Report Designer using existing extension points. This plug-in renders the label of a report item as an image. The extension rotates the image in a report design to display the label at a specified angle.
*Advanced report item
The example shows how to develop user interface features for a custom, rotated report item. The example shows how to implement a report item builder, a context menu, a custom property page, and data binding.
*Report rendering
The examples show how to extend the emitter interfaces to build and deploy a report rendering plug-in that runs in the BIRT Report Engine environment. The comma‑separated values (CSV) extension example is a plug-in that writes the table data in a report to a file in CSV format. The XML extension example is a plug-in that writes the table data in a report to a file in XML format.
*Data extraction
The example shows how to develop a data extraction extension that exports report data to XML format.
*Open data access (ODA) drivers
The ODA examples show how to develop an ODA driver extension to the BIRT 4.3.1 Report Designer, so a report developer can select the extended ODA driver through the user interface. The CSV ODA driver example is a plug-in that reads data from a CSV file. The Hibernate ODA driver example uses Hibernate Query Language (HQL) to provide a SQL‑transparent extension that makes the ODA extension portable to all relational databases.
*Plug-in fragment
The plug-in fragment example adds Spanish localization features for the BIRT Report Viewer to an existing plug-in.
*Debugging
The example contains a report with Java and JavaScript code to demonstrate how to prepare a report for debugging, set JavaScript and Java breakpoints, create the debug configuration, and debug a report design.
You can download the source code for these extension examples at:
http://www.actuate.com/birt/contributions