Using conditional highlighting, it is easy to create a report having this appearance, by “coloring” every second data line. Using the “Customer List” report example which we constructed previously, to save effort.
Remove all the “text” objects from the “Master data” band. Put a “Text” object on the data-band and stretch it, so that it would occupy practically all the band space:
This object will modify its color depending on the data line number. Select the object and set the following conditional expression in the highlight editor:
<Line> mod 2 = 1
Attention: if you have selected C++Script as a script language (see more details in the "Script" chapter), you should write the condition using C++Script:
<Line> % 2 == 1
Select gray color for highlighting, but not too saturated (closer to white). Now other objects can be added to the data-band on top of the empty “text” object:
When previewing the report, we will can see the following output: