Time for action – creating and applying our stylesheet
We will create our own stylesheet using the Style Definition Editor UI, then save it, and look at the XML code that has been created. Then we will assign the stylesheet to our report.
- To create our stylesheet, navigate to the option Extras | Style Definition Editor in the upper menu.
- Click on the Add Style-Rule option to create a new CSS rule and configure it as follows:
- Rule=
horizontal-line[style-class="Designer"]
- Style.text-color=
#339900
The CSS rule says that it will apply the style (green color) to all the horizontal lines that have the value
Designer
in their Attributes.style-class.Note
Designer
is the default user used when previewing reports in PRD. - Rule=
- Click on the Add Style-Rule option to create a new CSS rule and configure it as follows:
- Rule=
horizontal-line[style-class="Admin"]
- Style.text-color=
#f02929
The CSS rule says that it will apply the style (red color) to all the horizontal lines that have the value...
- Rule=