Jump to content
We've recently updated our Privacy Statement, available here ×

[Solved] How to get reportElement properties


puperzenkarl

Recommended Posts

I set some properties on some elements in iReport. Then I tried to read the properties map of a reportElement in my Java Application, but it doesn´t work. The properties map is empty. Why?

 

Code:



Post Edited by Karl Puperze at 03/02/09 15:58



Post Edited by Karl Puperze at 03/02/09 15:58



Post Edited by Karl Puperze at 03/03/09 08:38
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

By default, not all the element properties defined in the report template are transfered into the generated document.

Only the ones that are having a specified prefix and are usually recognized as exporter hints, are transfered. This is specified in the jasperreports.properties file, where by default we find this:

 

# Properties to be transferred in the generated document
net.sf.jasperreports.print.transfer.export=net.sf.jasperreports.export
 

You can add similar lines to the jasperreports.properties file in order to make JR transfer additional properties, based on their prefix.

 

net.sf.jasperreports.print.transfer.<arbitrary_suffix>=[my.properties.suffix]

 

I hope this helps.

Teodor

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...