SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 148 | Next

John Ward

"Practical Data Analysis and Reporting with BIRT"

Editing Style Sheets is a fairly
trivial task; simply double-clicking on existing Styles will bring up the Style Editor.
1. In the Outline, under the Styles section, double-click on the
CustomHeaderInfo Style.
2. Select the Border Section. Under the Top and Bottom colors, select Gray.
Chapter 8
[ 181 ]
That was easy enough. But now, there is a small (few pixels) gap between the Label
column and the Data column. Let's remove it.
3. Select CustomHeaderInfo|Border. Change the Left and Right line Style to
No line style.
4. Repeat steps 1 through 3 for CustomHeaderData.
Alternating Row Colors Using Highlights
So far, our report is coming along nicely. However, the detail section leaves a little
to be desired visually. It is hard to distinguish lines from each other, and it would be
nice to have the first line of a new order to be of different color to distinguish it. Well,
we are in luck. BIRT provides a very nice capability called a Highlight, which allows
us to change formatting options based on a particular condition.
Highlighting can be applied in one of two ways: it can be applied either to an
element directly, or in a Style. There is really no difference in editing a Style between
the two. I will cover both methods.
Styles, Themes, and Templates
[ 182 ]
First, let's look at applying the alternating row color through a Style.


Pages:
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6