You can change the default format of components by using element template sets. A template set is a specialized jrxml file that contains default settings for specific elements.
Creating a template set
There are a couple of ways to create a template set.
From scratch.
Go to the “Settings” drop down, select “Elements Templates”, and “Create new Template Set”. This starts the template set wizard to create the template set.
From an existing component.
Right click on the component and select “Add to Template Set”.
If a template set is currently selected the selected component is added to the template set. If no template set is currently selected, you are presented with the option to create a new template set.
The template set wizard is displayed.
To create a template set all you need is a location in your project to store is and a name
Editing a template set
The template set is displayed in the designer just like a normal report design. In addition to adding elements to a template set from an existing component on a report as described above, you can add components directly to the template set, just as you would add a component to a report design.
Using a template set.
You can point your Studio environment to a template set by selecting “Settings” drop down, “Element Templates”, select the template set you wish to use, and select “Use Template Set”. (Indicated by the red circles in the image below.) To reset to the default element formats click on the “Settings” drop down, “Element Templates”, and “Don’t use a template set”.
When a template set is active the element definitions defined in the template set will be used whenever you add a corresponding element to a report. For example, dragging a “Field” into your report will generate a “Text” element with the format of the last text element in your active template set.
Recommended Comments
There are no comments to display.
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