2006 IR Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: Tzanko - tsanstef template suggestion 2003-04-17 07:27 Hi Teodor, We have been using Jasper reports for several months. Thank you for that! :-) I have more then 20 reports. For each one there is an xml file. The title and the page header of the reports are almost identical. However whenever the client has a remark about the alignement or position of an element I have to go and modify it in all the 20 reports. And sometimes this takes more then a day. Haven't you considered introducing a template feature in JasperReports? Or is there any workaround this problem? By: Teodor Danciu - teodord RE: template suggestion 2003-04-17 11:12 Hi, Not sure this really helps, but you can use XML entities. Look at the "query" sample and you'll see that the report font settings section is placed in a separate file (.ent) that you could include in multiple other report design files if they have entire sections in common. I hope this helps. Teodor By: Tzanko - tsanstef RE: template suggestion 2003-04-17 15:49 10x Teodor, But this only facilitates common font definition. What if the elements in the Title and Page header are the same? I was thinking more about introducing and include element <include fromFile="commonTitle.xml"> By: Teodor Danciu - teodord RE: template suggestion 2003-04-18 00:59 Hi, This is the "include" feature you need. The example is based on the fonts section, but you can include like this any portion of your XML file. It does not matter if it is about the title, page footer, or even all sections. It is really about including portions of XML. Try and you'll see. I hope this helps. Teodor By: Vinod Kumar Singh - vinodsingh RE: template suggestion 2003-04-19 04:02 Hi, Why dont you try sub-reports for common sections. vinod Link to comment Share on other sites More sharing options...
rajil Posted February 19, 2013 Share Posted February 19, 2013 Hi Have you found solution to this issue? I have similar problem to this. Having more than 400 reports of same design and i'm using compiled reports. Want to change part of report header section that includes Report Header Part + Column Headers. I want to change Report Header Section such that it comes from a template report. So that when i change 1 template it reflects in all reports. One solution is to add sub-report but I can not open and edit all these reports to add sub-report. Another solution is to introduce styled template, but i have to change the position and alignment of the fields being displayed in report header. So this also is not a good approach.Is there any other way exist to achieve this??This is really very urgent. can anybody reply on this? 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