If more than one style is used in a report, the styles can be grouped into a Collection.
While a report can have multiple collections of styles, there can only be one collection applied to a report at a time.
A collection can be created in a couple of different ways:
- Filling out the Collection Name style property found in the Object Inspector.
Fig. 1 – Style Designer > Object Inspector > Main > Collection Name
- Selecting Create Style Collection… from the Style Designer ‘Actions’ menu.
Fig. 2 – Style Designer > Actions > Create Style Collection…
Using the second method will automatically generate the collection.
Manual Creation
- Open the Style Designer.
- Select a style. Select Add Style if necessary, and populate the property fields for the style.
- Enter a name into the Collection Name property. This name will become the name of the primary folder for your collection.
- Moving a style from one collection to another will change the collection name property.
- Renaming a collection will change the collection name property of all of the styles therein.
- Deleting the value of the collection name property of a style will disassociate a style from a collection.
- Configure the conditions. This isn’t strictly necessary, but without conditions, when a collection is applied to a report, the styles will be applied from top to bottom sequentially. This means the last style from the collection would be applied to the report.
- Set the style settings of your choice.
- Select the OK button near the bottom of the Style Designer dialog.
Automatic Creation
- Open the Style Designer dialog.
- Select Create Style Collection from the Actions menu within the Style Designer.
- Establish the parameters of the collection.
Fig. 3 – Create Style Collection
- Collection Name – Name of the collection.
- Color – The primary color for the style collection.
- Nested Level – The value associated with the level of nesting in the report.
- Nested Factor – Specifies the nesting factor, which impacts the clarity of colors.
- Borders – Enable or disable borders.
- Remove Existing Styles – While selected, the styles and collections already present in the Style Designer will be deleted. While disabled, a new collection will be added without removing preexisting styles and collections.
- Component – The components located on any bands that are checked in this panel will have the style applied. No collection will be created if no bands are checked.
- Preview – For previewing a report with the collection of styles.
- Select the OK button.
- Select the OK button near the bottom of the Style Designer when you are satisfied with the styles in the collection.
Apply a Collection of Styles
Select Home > Select Style.
Fig. 4 – Select Style
Selecting the primary collection folder will result in the following popup:
Fig. 5 – Confirmation Message
Selecting Yes will result in the styles from the collection being applied to the report components. This will depend on the conditions in the individual styles.