Issue:
[toc on_off::hide=1]
A variable can be populated with JAVA System properties, default JasperReports properties and configurable values from WEB-INFclassesjasperreports.properties
Resolution:
Example 1, a value specified in your jasperreports.properties file:
[CDATA[new String (net.sf.jasperreports.engine.util.JRProperties.getProperty("net.sf.jasperreports.band.split.type"))]]
In newer versions, the api has changed, so try a syntax like:
[CDATA[new String (net.sf.jasperreports.engine.JRPropertiesUtil.getInstance(DefaultJasperReportsContext.getInstance()).getProperty("net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.1"))]]
Example 2, a common JAVA System property within your application server's JVM:
[CDATA[new String(System.getProperty("user.dir")) ]]
Example 3, a value from a property listed within the jrxml itself:
[CDATA[$P{JASPER_REPORT}.getProperty("com.jaspersoft.studio.data.defaultdataadapter")]]
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now