On 6/12/13 12:24 AM, Werner F. Bruhin wrote:
> I like to shade e.g. every second detail line, or maybe have a line every x
> detail
> entries.
Very doable with report variables combined with a rectangle or line that has
its Show
property set to an expression that yields True for those row numbers that you
want it
printed.
> I guess I would use a "Rectangle" with background for background shade
> which is only printed on every second detail line, is there a "builtin"
> detail count
> variable which I could use for the condition?
Nothing builtin but I supposed that would be handy. Anyway here's a snippet to
set
that up (open up your .rfxml in a text editor and paste this between
<Variables> and
</Variables>:
<Variable>
<Name>detailCount</Name>
<expr>self.detailCount + 1</expr>
<InitialValue>0</InitialValue>
<ResetAt>None</ResetAt>
</Variable>
This will increment self.detailCount for every detail row processed. If you
want it
to reset when a group changes, change ResetAt to match that group's expr.
Then put in a Show for the object like this one to have it print every other
row:
<Objects>
<Object>
<Line>
...
<Show>self.detailCount % 2 == 0</Show>
</Line>
</Object>
</Objects>
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]