Drag a Label over to the
Header, and enter Top Employees.
19. Now, we need to import the Style Sheet. I have it saved as topEmployees.css.
From the Outline, right-click on Styles and choose Import CSS Style....
20. From the Dialog, navigate to where the CSS file is saved and select it. For the
list of Styles to be imported, click on Select All.
Chapter 8
[ 195 ]
21. Hit OK. You will see that all of the predefined Styles get applied
automatically.
22. TITLE??”which is one of the Styles defined in the CSS??”is a Custom Style and
will not automatically be applied. We need to apply it manually to the Label
in the Master Page. Select the Label under Master Page, and in the Property
Editor, under styles, select title.
23. Preview the Report.
Styles, Themes, and Templates
[ 196 ]
It is important to note: when creating External Style Sheets, as long as the Style
name corresponds to the BIRT element name and preceeds it with a dot, it will
be applied automatically. In the previous example, everything except TITLE was
applied automatically because there is no BIRT element called TITLE. A list of BIRT
predefined Style elements is available in the BIRT Style Editor, under the Pre-Defined
drop-down list. It is a matter of preference whether you choose to use the predefined
Styles. If you choose to use predefined Styles, the Style will apply to all elements in a
report unless explicitly overridden.
Pages:
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166