We will create a new report and configure its layout in order to be able to carry out this chapter's exercises. The most important configuration is establishing the values of Attributes.style-class and Attributes.xml-id, as later these will be used for creating CSS Rules.
Create a new report and save it with the name 17_Adding_Style_Sheets.prpt.
Configure the layout of our report so that it looks like the following screenshot:
In the Page Header section, add a Label and configure it as follows:
In the Page Header section, add a Horizontal-line and configure it as follows:
Attributes.style-class= =["env::username"]
Style.stroke= solid, 2.0
In the Report Header section, add a Label and configure it as follows:
Attributes.value= Again: Hello World!
Attributes.style-class= =["env::username"]
In the Report Header section, add three Rectangles that, respectively, will have the values =CONCATENATE("r1_";["env::username"]), =CONCATENATE("r2_";["env::username"]), and =CONCATENATE("r3_";["env::username"]) in Attributes.xml-id.
What just happened?
We created a new report and named it 17_Adding_Style_Sheets.prpt. We added a label and a horizontal line to the Page Header section, and a label and three rectangles to the Report Header section. We configured these objects so we can later apply style sheets to them.