Change band height on down stream pages - how
Hi-
RBuilder 6.03
Delphi 5
I am creating a report in CODE.
It has bands as follows:
FChildMedicalReport := FSubMedicalReport.Report as
TppChildReport;
FChildMedicalReport.AddBand(btPageStyle, 0);
FChildMedicalReport.PageStyle.PageSetting := psAll;
FChildMedicalReport.AddBand(btTitle, 1);
FChildMedicalReport.TitleBand.Height := 1.25;
FChildMedicalReport.AddBand(btHeader, 2);
FChildMedicalReport.HeaderBand.Height := 0.16;
FChildMedicalReport.AddBand(btDetail, 3);
FChildMedicalReport.DetailBand.PrintHeight:= phstatic;
FChildMedicalReport.DetailBand.Height := 0.17;
FChildMedicalReport.DetailBand.PrintCount := 15;
if FChildMedicalReport.pageno > 1 then
FChildMedicalReport.DetailBand.PrintCount := 18;
PROBLEM:
The report comes out three pages WIDE and several pages HIGH.
1A 2A 3A
1B 2B 3B
1C 2C 3C
I am trying to trap the moment it goes to creating the DOWN page,
(Page 1B or 2B for example)
and THEN change the height of the detail band, (The band above it
has shrunk for the DOWN pages and there is more room for it)
BUT I can not for all my work figure out how to trap the moment
it starts building the DOWN page
HELP - What am I mssing that is obvious?
Frank Cowan
RBuilder 6.03
Delphi 5
I am creating a report in CODE.
It has bands as follows:
FChildMedicalReport := FSubMedicalReport.Report as
TppChildReport;
FChildMedicalReport.AddBand(btPageStyle, 0);
FChildMedicalReport.PageStyle.PageSetting := psAll;
FChildMedicalReport.AddBand(btTitle, 1);
FChildMedicalReport.TitleBand.Height := 1.25;
FChildMedicalReport.AddBand(btHeader, 2);
FChildMedicalReport.HeaderBand.Height := 0.16;
FChildMedicalReport.AddBand(btDetail, 3);
FChildMedicalReport.DetailBand.PrintHeight:= phstatic;
FChildMedicalReport.DetailBand.Height := 0.17;
FChildMedicalReport.DetailBand.PrintCount := 15;
if FChildMedicalReport.pageno > 1 then
FChildMedicalReport.DetailBand.PrintCount := 18;
PROBLEM:
The report comes out three pages WIDE and several pages HIGH.
1A 2A 3A
1B 2B 3B
1C 2C 3C
I am trying to trap the moment it goes to creating the DOWN page,
(Page 1B or 2B for example)
and THEN change the height of the detail band, (The band above it
has shrunk for the DOWN pages and there is more room for it)
BUT I can not for all my work figure out how to trap the moment
it starts building the DOWN page
HELP - What am I mssing that is obvious?
Frank Cowan
This discussion has been closed.
Comments
appreciated - am I overlooking
something simple?
Frank
Please see the example below on creating a report dynamically in code. If
this does not help, please send an example demonstrating the problem to
support@digital-metaphors.com and we'll take a look.
http://www.digital-metaphors.com/tips/DynamicReportCreation.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The report works fine, and I went through the sample you rpovided, but the
issue is this:
How do I change the line count in child report AFTER the first page going
DOWN?
Pages:
1A 2A 3A
1B 2B 3B
1C 2C 3C
I am trying to trap the moment it goes to creating the DOWN page,
(Page 1B or 2B for example)
There does not seem to be a way to trigger this - is there?
Frank