Search code examples
printingjasper-reports

Which exclude property prefix is used with JRPrintServiceExporter?


On reports that I export to PDF, HTML, CSV etc. you can exclude elements of the report through a property you set like this:

<property name="net.sf.jasperreports.export.pdf.exclude.key.{elementKey}"/>

For reports that directly get printed we use the JRPrintServiceExporter. So is there an opportunity to exclude elements via the .jrxml file when the report will be sent to the printer immediately?

The jasperreports documentations and samples only showing the exclude-property with reports which get exported to files.

We use the jasperreports-library 6.1.1 in our software.


Solution

  • For Java Print/Graphics2D use graphics2d see package summary

    <property name="net.sf.jasperreports.export.graphics2d.exclude.key.{elementKey}"/>