Java Reference
In-Depth Information
Summary
In this chapter, we learned how to export reports to all formats supported by
JasperReports. We learned to export reports to PDF by taking advantage of the
JRPdfExporter class. We also saw how to export reports to RTF/Microsoft Word by
taking advantage of the JRRtfExporter class.
Similarly, to export reports to Microsoft Excel, HTML, and CSV formats we used the
JExcelApiExporter , JRHtmlExporter , and JRCsvExporter classes respectively.
The JRXmlExporter class of JasperReports provided us with the functionality to
export our reports to the XML format.
Finally, we learned to export reports to Plain Text by taking advantage of the
JRTextExporter class. However, the algorithm JasperReports uses to generate Plain
Text reports does not always produce accurate results while mapping the report
pixels to ASCII characters. The chapter also gave us an insight on how to direct
HTML reports to a browser.
 
Search WWH ::




Custom Search