Java Reference
In-Depth Information
A common requirement when exporting to HTML is to have
the exported report directed to a browser window. This
technique will be covered in the last section in this chapter.
The code in the example will generate an HTML report that looks like the
following screenshot:
Reports exported to HTML result in a single HTML file, regardless of how many
pages the original report has.
Exporting to XML
Reports can be exported to XML as well. JasperReports uses a DTD file to generate
XML reports. XML reports can be exported back to compiled reports by using the
net.sf.jasperreports.engine.xml.JRPrintXmlLoader class. The following
example demonstrates how to export a report to XML.
 
Search WWH ::




Custom Search