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

Detail number

edited August 2003 in RAP
how to get Detail number (line Number) with RAP

(i will to chanbge the Line Color when DetailNumber mod 2 = 0)

thanks

Comments

  • edited September 2003
    Hi Mark,

    In Delphi code, the way to do it would be:

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    if ((ppReport1.DataPipeline.RecordNo mod 2) = 0) then
    ppShape1.Brush.Color := clBlue
    else
    ppShape1.Brush.Color := clAqua;
    end;


    In RAP, you can do the following, however, Report.CachePages would need to
    be set to true otherwise the colors may change as you move backwards through
    the report.

    if (Shape1.Brush.Color = clAqua) then
    Shape1.Brush.Color := clBlue
    else
    Shape1.Brush.Color := clAqua;

    Another alternative is to create a RAP pass through function to surface the
    RecordNo property value for a given pipeline.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.