I couldn't get it to work; when select PrintonLastPage only by uncheck PrintonFirstPage, it will print footer start from second page and more. Is there anyway to just print footer on the last page only? Thanks
Instead of using PrintOnFirstPage/PrintOnLastPage, you could just check the data pipeline state. Initially set the footer band to Visible := False. then code this in the BeforePrint of the FooterBand:
if (ppDBPipeline1.EOF) then ppReport1.Footer.Visible := True else ppReport1.Footer.Visible := False;
This will display the footer only after all of the data has been traversed - which should do the trick...
I had to set the visible property for each component in the Footerband to false rather than the Footerband itself. When I set the FooterBand to Visible=false I lost the positioning that the Footerband required. In other words, my Footerband is Height=2", if I set the Footerband Visible=false my detail lines printed into this 2".
Comments
data pipeline state. Initially set the footer band to Visible := False.
then code this in the BeforePrint of the FooterBand:
if (ppDBPipeline1.EOF) then
ppReport1.Footer.Visible := True
else
ppReport1.Footer.Visible := False;
This will display the footer only after all of the data has been traversed -
which should do the trick...
Cheers,
Tom Ollar
Digital Metaphors Corporation
--
Cheers,
Tom Ollar
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
false rather than the Footerband itself. When I set the FooterBand to
Visible=false I lost the positioning that the Footerband required. In other
words, my Footerband is Height=2", if I set the Footerband Visible=false my
detail lines printed into this 2".
mbd