Master header band not found.
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com