puperzenkarl Posted March 2, 2009 Share Posted March 2, 2009 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:58Post Edited by Karl Puperze at 03/02/09 15:58Post Edited by Karl Puperze at 03/03/09 08:38 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted March 2, 2009 Share Posted March 2, 2009 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 documentnet.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 More sharing options...
puperzenkarl Posted March 3, 2009 Author Share Posted March 3, 2009 Yes it does! Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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