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

conditional printing

edited August 2006 in General
Delphi 5
Report Builder Enterprise Edition 7.02

I've a report with Group and Detail bands. If the first record of detail is
the same of Header Group, i need to skip one record forward to avoid print
this record. How can i do that?

Regards

Comments

  • edited August 2006
    Hi,

    Inside the DetailBand.BeforePrint event you can check the value of the text
    in the group header and if it is the same as what will be printed in the
    detail band, you can set the visibility of the components to False.
    Something like the following...

    if GroupDBText.Text = Report.DataPipeline['MyField'] then
    DetailDBText.Visible := False
    else
    DetailDBText.Visible := True;


    --
    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.