Creating and Re-using Styles
To illustrate how to create styles in an OMS report we will change the heading in the Latest Human Sessions Report in Sitecore Analytics.
Important
Open the Latest Sessions.mrt file in the report designer. Remember that Latest Human Sessions is the base report for all the following reports: Latest Human Sessions, Latest Company Sessions, Latest ISP Sessions and Unidentified Sessions
If you change the style in any of these reports you will change the styles for all these reports. Therefore it is good practice to first make a copy of the report file and save it to your own folder. This prevents you from over writing other reports.
How to Create a New Style
In the Style Designer, there are three different styles to choose from:
- Component Style
- Chart Style
- Cross Tab Style
To create a new style to format the report header title:
1. Click Add Style and then select Component. You can use component styles to format reports that contain mainly text.
2. In the Name field, enter MyStyle1 or a name of your choice.
3. Expand Text Brush and select the color Dark Grey.
4. Expand Brush and select the color Light Grey. This changes the background color behind the heading.
5. Expand Font, select Font Size and enter the value 21.
6. In the Style Designer, click Close.
7. In your chosen report, select the report header.
8. In the Report Designer ribbon Style panel, select the style you just created.
9. In Sitecore Analytics, refresh the Latest Human Sessions report and view the new in the report header.
You have now created and applied a new component style to a report.
Saving and Re-using Styles
Save Stimulsoft styles as a .sts file.
How to Save Styles
1. Open the Style Designer.
2. Click Save Style
3. In the Save Style dialog box, you can see any existing style files.
4. Give your style a name such as MyStyles and click Save.
You can see MyStyles added to the list of available styles.
How to Import Styles into another Report
1. Open a report, such as Metrics.
2. Open the Style Designer.
3. Click Open Style.
4. Select the style you want to open from the Open Style dialog box, for example MyStyles.
Note
If the styles contained in the .sts file have the same names as in the existing report, they will automatically overwrite all the styles contained in that report. If the component style names are different, you must apply each style manually to the elements in the report that you want to change.
Next post: Changing Report Styles using the Properties Panel