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

Master header band not found.

edited April 2003 in General
Hi,

I have a master detail relationship set up and I want to not show the master
header band at runtime.
I tried :

var
iBand : integer;
iComponent : integer;
begin
if FppReport.ObjectByName(iBand, iComponent, 'ppMasterHeaderBand') then
TppHeaderBand(FppReport.Bands[iBand].Objects[iComponent]).Visible :=
False;
end;

But the ppMasterHeaderBand cannot be found for some reason.

However, if I do

FppReport.HeaderBand.Visible := False;

then it works.

Why is there a problem with finding the object 'ppMasterHeaderBand'?

Sham.

Comments

  • edited April 2003
    Hi Sham,

    Try using a report object loop instead of the ObjectByName method. Check
    out the "Loop Through All Objects" post in the Tech Tips | Codebased
    newsgroup.

    --
    Best Regards,

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