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

How to tell if the Summary Band is printing

edited October 2007 in General
Hi,

Is it possible to tell if the Summary Band is printing? I want to make a
different Region in the Header visibile if the Summary is printing.

Thanks,
Scott

Comments

  • edited October 2007
    Hi Scott,

    I'm a bit unclear about what you are trying to accomplish. Do you need to
    perhaps check in your users are adding a summary band to their reports and
    then show a different region if they are? If so, I would recommend looping
    through all the bands in the report and checking for the TppSummaryBand type
    during the BeforePrint event. If this band is present and visible, show the
    different region for the header. The bands can be accessed from the
    Report.Bands[] property.

    uses
    ppClass, ppBands;

    var
    liBand: Integer;
    lBand: TppBand;
    begin

    for liBand := 0 to Report.BandCount-1 do
    begin
    lBand := Report.Bands[liBand];
    if (lBand is TppSummaryBand) and (lBand.Visible) then
    {Show Region}

    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.