9. Under the Font section, use the following settings:
Font: Sans Serif
Color: White
Size: Large
Weight: Bold
10. Under the Background section, use the following settings:
Background color: Black
11. Hit OK.
Chapter 8
[ 175 ]
Now, when we run the report, we can see that the header line is formatted with a
black background and white font.
Custom Style Sheets
In the previous example, we can see that we didn't even need to apply this Style to
any elements; it was automatically set to the header of the order details Table. This
would be the case for any Table that had the detail row populated with something.
This is the case with any of the predefined Styles in BIRT. So next, let's look at a
Custom-defined Style, and apply it to our customer information table.
1. Right-click on the Styles section of the outline, and create a new Style.
2. Under the Custom Style text box, enter CustomerHeaderInfo.
Styles, Themes, and Templates
[ 176 ]
3. Under the Font section, enter the following information:
Font: Sans Serif
Color: White
Size: Large
Weight: Bold
4. Under the Background section, enter the following information:
Background color: Gray
5. Under the Box section, enter 1|points for all sections. Under the Border
section, enter the following info:
Style (All): Solid
Color (All): White
Width (All): Thin
6.
Pages:
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158