I am using the JasperReports 4.7,
Trying to hide a text field while exporting to pdf,xsl. I've tried the using of
net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name}
property.
It didn't work. Any suggestions?
I am using the JasperReports 4.7,
Trying to hide a text field while exporting to pdf,xsl. I've tried the using of
net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name}
property.
It didn't work. Any suggestions?
You should use another property: net.sf.jasperreports.export.{format}.exclude.key.{keyvalue}, where the keyvalue is element's key to exclude.
Example.
The jrxml file:
In this report I've placed two textFields: first with key="tfToHideInPDF" to exclude in pdf file and the second for showing in all report's formats.
The report's design (in iReport):
The rtf document generated with RTF Preview in iReport is:
And the dpf document generated with PDF Preview in iReport is:
If you want to hide textField additionally in rtf format, for example, you should just add another property:
<property name="net.sf.jasperreports.export.rtf.exclude.key.tfToHideInPDF"/>
. And so on.