NewPage from detail band
?I need to be able to issue a form feed (NewPage) from the detail band
BeforePrint or BeforeGenerate handler. I'm using ReportBuilder
professional for Delphi 7 professional.
More specifically, based on the contents of the record contents in the
result set for the report, I need to conditionally generate a NewPage.
thanks,
Bill Davis
bill@mbimbi.com
--- posted by geoForum on http://delphi.newswhat.com
BeforePrint or BeforeGenerate handler. I'm using ReportBuilder
professional for Delphi 7 professional.
More specifically, based on the contents of the record contents in the
result set for the report, I need to conditionally generate a NewPage.
thanks,
Bill Davis
bill@mbimbi.com
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
1. ReportBuilder 9.03 natively includes a PageBreak component that when
placed on a report will cause the page to break where ever you need.
2. Take a look at the following article on causing a page break without the
use of the PageBreak component.
---------------------------------------------
Article: Forcing a Page Break
---------------------------------------------
Question:
How can I force a page break occur based upon
a condition calculated at run-time.
Solution:
Define a Group that starts on a new page when
it breaks. Then use the Group.OnGetBreakValue
event to control the timing of the break.
1. From the Report Designer, select Report | Groups
to access the Group dialog.
2. Define a group based upon a static component,
such as a Label or Variable. Click the
Start new page checkbox. Close the dialog.
3. Using the object inspector's drop down list,
find and select the TppGroup object.
4. Create an event-handler for the Group's
OnGetBreakValue event.
5. Add code to set the break value.
procedure Form1.Group1OnGetBreakValue(Sender: TObject; var aBreakValue:
String);
begin
if condition then
aBreakValue := 'Some Value';
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com