HeaderBand.Height on childreports access violation
Hello
I have a problem to set the height of a band in a childreport by coding.
My Code:
vppSubReport.CreateReport(FDruckReport);
vChildReport := TppChildReport(vppSubReport.Report);
vChildReport.DataPipeline : FDruckReport.GetDataPipeline('Behandlungen');
vChildReport.CreateDefaultBands;
vChildReport.HeaderBand.Height:= 7; // this point gives access violation
The problem is, that vppSubReport.Report is read only I think.
Has anybody an idea?
Thanks a lot for the help.
Regards
Christoph
I have a problem to set the height of a band in a childreport by coding.
My Code:
vppSubReport.CreateReport(FDruckReport);
vChildReport := TppChildReport(vppSubReport.Report);
vChildReport.DataPipeline : FDruckReport.GetDataPipeline('Behandlungen');
vChildReport.CreateDefaultBands;
vChildReport.HeaderBand.Height:= 7; // this point gives access violation
The problem is, that vppSubReport.Report is read only I think.
Has anybody an idea?
Thanks a lot for the help.
Regards
Christoph
This discussion has been closed.
Comments
I solved the problem. The tricky thing was, that CreateDefaultBAnds did
not crate a HeaderBand!
Great, glad you got it solved.
Note that Child style subreports do not support Header or Footer bands.
This is the default style created so when CreateDefaultBands is
called, the header and footer are not created.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com