Prev | Current Page 206 | Next

John Ward

"Practical Data Analysis and Reporting with BIRT"

parseCommandLineOptions(args);
//Get the input file and output file
String reportInputFile = cl.getOptionValue("i");
String reportOutputFile = cl.getOptionValue("o");
//Execute the report
re.executeReport(reportInputFile, reportOutputFile);
} }
Outputting to Different Formats
The BIRT platform supports a plug-in structure based on Eclipse. One of the BIRT
Plug-in extension points is the Emitter extension point. Emitters are plug-ins that
handle the rendering of reports to different formats.
Out of the box, BIRT comes with several different Emitters. BIRT can output to the
following formats with the default Emitters:
HTML
PDF
Microsoft Word
Microsoft Excel
RTF
Microsoft PowerPoint
Adobe PostScript
In the BIRT Web Designer, the different output formats are available under the
File|View Report menu.
When using the BIRT Web Viewer, you can specify different report formats by using
the __format URL parameter. If you specified __format=pdf it would output in
the Adobe PDF format, or for __format=xls, it would output in the Microsoft
Excel format.
??? ??? ??? ??? ??? ??? ???
Deployment
[ 268 ]
In addition to the URL parameter, there is also an Export dialog available in the
frameset servlet.
Summary
Although brief, this chapter gave some examples of how to Deploy BIRT reports.
The main options are to use the BIRT Example Web Viewer, to use the example
command-line tools, or to embed the BIRT Engine API into your own custom
web application.


Pages:
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
miedzyzdroje hotel Automaty samosprzedajÄ…ce przyczepy campingowe katalog stron budowlanych tanie noclegi nad morzem rewal