Invoke Start_New_page on the fly at runtime in a GroupFooterBand BeforePrint
Hi,
I want to start a new page on the fly at runtime in a GroupFooterBand
BeforePrint. How do i issue the engine to start a new page and continue
printing? I can't use NewPage, NewPageThreshold because to start a newpage
or not depends on totals printed in the groups footerband.
Greetings,
Filip Moons
I want to start a new page on the fly at runtime in a GroupFooterBand
BeforePrint. How do i issue the engine to start a new page and continue
printing? I can't use NewPage, NewPageThreshold because to start a newpage
or not depends on totals printed in the groups footerband.
Greetings,
Filip Moons
This discussion has been closed.
Comments
Which version of ReportBuilder are you using? If you have RB 9 or later,
you could manually toggle the visibility of a TppPageBreak component inside
the band based on whether you want the page to break or not.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
No, RB7 since we are still using Delpi5 we can't upgrade to the latest
version. I tried using the bands OutOfSpace prop but that generates and
endless report. Setting ppGroupFooterBand.PrintPosition to a negative value
does what I need but is this safe to use/rely on this way?
Greetings,
Filip Moons
procedure TANL33020F.ppGroupFooterBandBeforePrint(Sender: TObject);
begin
ppGroupFooterBand.PrintPosition := 0;
// ppGroupFooterBand.OutOfSpace := False;
ppGroupFooterBand.Visible := not(ResultsAllZero);
if ppGroupFooterBand.Visible then
begin
// Force New Page
ppGroupFooterBand.PrintPosition := -1;
// ppGroupFooterBand.OutOfSpace := True;
end;
end;
Ok , setting ppGroupFooterBand.PrintPosition to a negative value isn't
working, some times the band skips to new page, other times it doesn't. I
REALLY need some kind of mechanism to start a new page from a
ppGroupFooterBand.BeforePrint. I don't understand, this should be really
basic stuff for a report designer...
ReportBuilder 7 simply was not designed to allow page breaks anywhere on the
report. If for instance you are able to determine the last detail band in
the group, you could set that band's OutOfSpace property to True before the
group footer prints. It seems that setting this property in the BeforePrint
of the group footer is too late. I am unsure this will work but you will
probably need to play around with different setups to get the result you
want. I also believe RBAddon included a pagebreak component for RB 7 which
is also something you may want to investigate.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com