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

detail line background color change

edited September 2002 in General
Good Morning!

How do i change the background color for a detail line for a given conditon.

thank you

Comments

  • edited September 2002
    I think u'll have to put a Region in the detail band, put your fields on
    that region. Then you can control the background color of the region giving
    the detail band that color.
    This way you can even implement alternate colors for the detail band giving
    it a very standard look.

    HTH,
    Vikram

  • edited September 2002
    Yes, you can use a shape or region component to do this. For example:

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin

    if (ppReport1.DataPipeline['Company'] = 'Sight Diver') then
    ppShape1.Brush.Color := clRed
    else
    ppShape1.Brush.Color := clWhite;

    end;


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.