Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Dupex printing

edited February 2004 in RAP
Hello NG!

We have a report which prints letters for customers. To save paper we want
to print the letters duplex. To get this posible we Build our report like
this.

1. We have a Master-Detail SQL-Tree
2. in our Master report we have a groupbrake by a Customer Number
3. in the Detailband is a subreport2 with the Detal-datapipeline
4. in the Groupfooterband is a subreport1 wich no datapipeline as section
( this is to get an emtypage when the last informations are on a frontpage )
5. Te Report also have in the master a head- and footerband
6. We have a EmptyPage - Variable declared in the global-declaration
7. Set the EmptyPage in ReportBeforPrint to false
8. Set ResetPageNo for all subreports in ReportBeforPrint to false
9. the following code in the groupfooterband.beforprint
if not EmptyPage then begin
SubReport1.Visible := (Report.AbsolutePageNo mod 2 = 1) and not
GroupFooterBand1.OverFlow;
EmptyPage := SubReport1.Visible;
end else begin
EmptyPage := False;
end;

When the subreport2 in the Detail-Band is an child-type all is ok. I become
the following correct result
[customer Nr: side LetterNumber]

( [1:front 1] [1:back 1] ) ( [1:front 2] [1:back 2] ) ( [2:front 3] [2:back
empty 3] ) ...

When The subreport is a section-type my report prints for every customer a
Empty (subreport1) page and i get for each customer 2 Master-pages, one
befor and one after the subreport2. But there no informations as reason to
do this

some objects
[^ Master Header]
[^ Group0 Header]
subreport2 - myDetailpipeline - as section
[^ Detail]
subreport1 - noDatapipeline - as section
[^ Group0 Foot]
some objects
[^ Master Foot ]

( [1:master Front] [1:sub2 Back] ) ( [1:sub2 Front] [1:master back] ) (
[1:empty] [2:Master back] ) ....

Is it on a other way posible to tell the Printer that it have to take a new
letter by a groupbreake. Or how can i ges the emtypage correctly only on a
Backpage when there are no more informations.

thanks for help
greetings Ren?

PS: please don't worry about my english (I know it's terrible)

Comments

This discussion has been closed.