You can use the PrintPosition property of the group footer band to adjust the vertical position of that band on the page. This property is a measurment in report units.
The page footer will always print at the bottom of the page and the summary band will always print at the end of the report. What exactly are you trying to accomplish? If you would like the group footer at the very bottom of the page, you will need to remove the page footer band.
procedure TForm1.ppGroupFooterBand1BeforePrint(Sender: TObject); var PageBottom: Single; Rect: TppRect; StartingPosition: Integer; begin with Report.Engine.Page.PageDef do PageBottom := mmHeight - mmMarginBottom;
Comments
You can use the PrintPosition property of the group footer band to adjust
the vertical position of that band on the page. This property is a
measurment in report units.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for your answer, but I don't get the band on the correct position
It is the intention that the groupfooter is printed before the footerband
and summaryband. Can you make an example for me?
Thanks in advance,
Dees
The page footer will always print at the bottom of the page and the summary
band will always print at the end of the report. What exactly are you
trying to accomplish? If you would like the group footer at the very bottom
of the page, you will need to remove the page footer band.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Default the groupfooter is printed directly under the detailband.
I now try to print the groupfooter direct above the footerband.
But how dow I retrieve at runtime the height of my footerband so I can
calculate the new position of my groupfooterband?
Which event do I have to use for setting my PrintPosition?
Thx
procedure TForm1.ppGroupFooterBand1BeforePrint(Sender: TObject);
var
PageBottom: Single;
Rect: TppRect;
StartingPosition: Integer;
begin
with Report.Engine.Page.PageDef do
PageBottom := mmHeight - mmMarginBottom;
StartingPosition := StrToInt(FloatToStr(PageBottom)) -
ppFooterBand1.mmHeight - ppGroupFooterBand1.mmHeight;
Rect.Left := Report.Engine.PrintPosRect.Left;
Rect.Top := StartingPosition;
Rect.Right := Report.Engine.PrintPosRect.Right;
Rect.Bottom := StartingPosition + ppGroupFooterBand1.mmHeight;
Report.Engine.SetPrintPosition(Rect.Left, Rect.Top, Rect.Right, Rect.Top);
end;