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

How to suppress TppLine?

edited March 2006 in General
Hello, All!

I have TppDBText with SuppressRepeatedValues = true, and TppLine. How to
suppress TppLine when TppDBText is suppressed?

With best regards, Sanya.

Comments

  • edited March 2006
    Hi Sanya,

    You will need to supress the repeated values manually in this case. You
    could perhaps add the DBText and the line to a TppRegion and toggle the
    region's visibility. Something like the following...

    procedure TForm1.FormCreate(Sender: TObject);
    begin
    FPreviousValue := 0;
    end;

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    ppRegion1.Visible := (FPreviousValue <> ppReport1.DataPipeline['CustNo']);

    FPreviousValue := ppReport1.DataPipeline['CustNo'];
    end;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.