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}
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com