Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Alternate colours for each row of report?

edited May 2002 in General
Hi,

What is the easiest way to create a report so that the detail line
background displays in alternate colours?

Thanks

Alex

Comments

  • edited May 2002
    Alex,
    put a shape behind the fields you want to print
    make sure the fields are transparent
    either code the onprint event handler of the shape in rap (preferrably cause
    you see the effect in design time) or in code
    something like
    ppshape.visible:= not ppshape.visible

    that way you define the desired color in the layout
    you just make the background visible or not
    cu
    marc


  • edited May 2002
    Hi Marc,

    Thanks! I tried using a shape but it appeared to move itself underneath the
    detail band displayed fields. Now that I think about it, maybe I have
    ShiftWithParent or something like that enabled. Thanks , at least now I
    know I'm using the preferred approach.

    Alex

  • edited May 2002
    Alex,
    you should place the shape behind the other controls
    otherwise the controls will not be visible
    be sure you 'send to back' the shape
    i also have a static detail band and the shape set to parentheight and
    parentwidth
    if you want to get rid of the shape sides set the pen to clear
    cu
    marc

This discussion has been closed.