Exporting to plain text

In this section, we will export a more "textual" report than the one we used for previous sections. The JRXML template for the report that we will export is as follows:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design// EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="PlainTextExportDemoReport" > <title> <band height="30"> <staticText> <reportElement x="0" y="0" width="555" height="30" /> <text> <![CDATA[Text Heavy Report]]> </text> </staticText> </band> </title> <detail> <band height="100"> <staticText> <reportElement x="0" y="0" width="555" height="100" /> <text> <![CDATA[Exporting to plain text makes more sense when thereport ...

Get JasperReports 3.5 for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.