Page break?
Hi all!
I'm dealing with an existing huge project.
There's a printing of several subreports, each of them representing a single
detachable label.
The printing routine was usually used in conjunction with ribbon
label-printers, therefore there was only one subreport on each row and all
went smooth.
Now we want to print upon an A4 sheet: here it comes the problem!
Each page seems to need to be filled with data. If at least one row is
incomplete (e.g. 2 subreports on a 3 column report), then the entire page
won't be printed.
I think there should be something I should do to force a pagebreak or
something like that, for closing the incomplete page (always the last one)
but can't find out.
Please help
Francesco Salvi
francesco.salvi@eng.it
I'm dealing with an existing huge project.
There's a printing of several subreports, each of them representing a single
detachable label.
The printing routine was usually used in conjunction with ribbon
label-printers, therefore there was only one subreport on each row and all
went smooth.
Now we want to print upon an A4 sheet: here it comes the problem!
Each page seems to need to be filled with data. If at least one row is
incomplete (e.g. 2 subreports on a 3 column report), then the entire page
won't be printed.
I think there should be something I should do to force a pagebreak or
something like that, for closing the incomplete page (always the last one)
but can't find out.
Please help
Francesco Salvi
francesco.salvi@eng.it
This discussion has been closed.
Comments
There is no built in way to cause a page break in the current version of
ReportBuilder. See the article below on how to work around this issue.
---------------------------------------------
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
Unfortunately this solution will lead to a big lot of work, as there are
MANY reports that need to be redesigned.
I will try to apply your suggestion programatically ... perhaps I will be
lucky enough
Francesco Salvi