1. Create a new Style called Detail Alternating Row Color. Select Highlights
from the list of categories.
2. Click Add. Use the following condition: row.__rownum % 2. This is an
Expression that will select every other row. We will discuss Expressions in
more detail in the chapter on Scripting. Set the operand to Equal to and value
to 0. Also set the Background Color to Silver.
Chapter 8
[ 183 ]
3. Hit OK and exit out of the Style Editor.
4. Select the Detail row for the getCustomerOrders Table either from the Visual
Designer or from the Outline.
5. In the Property Editor, Select General. Under Styles, select Detail
Alternating Row Color.
Styles, Themes, and Templates
[ 184 ]
Now, when we run the report, we can see that the Detail row has the alternating
colors we were looking for. We can easily apply this to any of the detail rows in
our report.
Chapter 8
[ 185 ]
Creating Themes
Using the power of Style Sheets and Libraries, we have the ability to apply general
formatting to an entire Report Design using Themes. Themes provide a simple
mechanism to apply a wide range of Styles to an entire Report Design, without the
need to manually apply them.
In the following example, we will move the Styles we have created into our Library,
and apply them to our report using a Theme.
1. Following the instructions from the last chapter, copy and paste all of the
Styles in this report into the ClassicCarsLibrary.
Pages:
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161