Code Includes And Single Styles File?


Is there anyway to do the following:

(1) Styles
Is it possible to have a single styles file which would be included included in the main report and all associated subreports?
This would be very useful as I have a complex report with several subreports and have had to copy and paste the styles into every template.

(2) Includes
Is it possible to include sections of code into the templates? I have several subreports which have similar code and only differ by filter expression, heading text and color, so again this would be very useful here.

Please let me know if any of the above are possible or are in the pipeline.
richardc's picture
Joined: Mar 7 2007 - 9:18am
Last seen: 12 years 7 months ago

1 Answer:

  • Yes, since JR 2.0.0. See the "templates" sample from the JR project distribution.

  • Only via XML entities. See the "query" sample.
  • [/ol]

    lucianc's picture
    Joined: Jul 17 2006 - 1:10am
    Last seen: 2 weeks 4 days ago