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

Templates / Reusing jrxml parts


drsaturno

Recommended Posts

Hi there,

I was researching some way of reusing jrxml parts, such as report title elements, report footer elements, etc, in a way of providing some pattern to all my reports.

I found some topics related to the same issue:

http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=26491

http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=3043

The jasperTemplate filter helps me to stablish a way to start new reports, defining styles, headers, footers, etc.

But when we have to change those patterns, like, for example,  a logo image position at the top of all reports, I cannot do it in just one template file. In other words, I cannot avoid replications in all the reports, I have to change the image position in all reports.

That's not true, in fact. I tried to use XML entities as a workaround, and it worked. But, once I define a XML entity inside a jrxml file, I cannot use iReport as a jrxml editor anymore to compile reports, cause all my entities are translated, and all the replicated code is back again.

Is there any news about this issue? How to create a  template avoiding code replication in all reports using it?

Thank you!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...