Defining the dependencies for the XML report rendering extension
To compile and run the XML report rendering example, specify the org.eclipse.birt.report.engine plug-in, which must be available on the classpath for the XML rendering extension.
Declaring the emitters extension
To implement the XML report rendering extension, specify the org.eclipse.birt.report.engine.emitters extension point and add the extension element details.
How to specify the extension
1 On PDE Manifest Editor, choose Extensions.
2 In All Extensions, choose Add. New Extension—Extension Point Selection appears.
3 In Available extension points, select the following plug-in:
org.eclipse.birt.report.engine.emitters
Choose Finish.
4 In All Extensions, right-click the extension point, org.eclipse.birt.report
.engine.emitters, and choose the extension element, emitter.
5 In Extension Element Details, specify the properties for the XML emitter extension element, emitter, as shown in Table 24‑6.
Table 24‑6 Property values for the XML emitter extension element
Property
Value
class
org.eclipse.birt.report.engine.emitter.xml.XMLReportEmitter
format
xml
mimeType
xml
id
org.eclipse.birt.report.engine.emitter.xml
The sample XML report rendering extension
The XML report rendering extension extends the report emitter interfaces and XML writer in org.eclipse.birt.report.engine.emitter. The extension example provides access to the report container, pages, tables, rows, cells text, labels, data, images, hyperlinks, and other contents at different phases of the report generation process.
The example writes the contents of the report to an XML output file. The example creates the XML file in the same folder as the exported report. The output file name is the name of the report with a .xml extension. The example provides only limited error checking.
The following section provides a general description of the code-based extensions a developer must make to develop an XML report rendering extension after defining the plug-in framework in the Eclipse PDE.