Synchronized subreports on the same page
Hi,
I am trying to print checks on forms that have two stubs. The data in
both stubs needs to be identical. I am using fixed subreports for the
stubs since they show the vouchers that have been paid by the check. It
will be possible that the vouchers will need more space than will fit on
a single page. The problem is that if it does overrun the page stub two
on page one does not print but waits until the subreport for stub one
has completed then prints only on page two. What is the best way to
accomplish my objective.
Thanks in advance.
Darryl
I am trying to print checks on forms that have two stubs. The data in
both stubs needs to be identical. I am using fixed subreports for the
stubs since they show the vouchers that have been paid by the check. It
will be possible that the vouchers will need more space than will fit on
a single page. The problem is that if it does overrun the page stub two
on page one does not print but waits until the subreport for stub one
has completed then prints only on page two. What is the best way to
accomplish my objective.
Thanks in advance.
Darryl
This discussion has been closed.
Comments
Create a main report and in the detail band place two subreports. For each
subreport, set PrintBehavior to pbFixed and TraverseAllData to True. Size
the subreport Height to occupy the fixed area of the page where the voucher
detail is to be displayed.
The above is the correct configuration. I had to patch the RB 9.01 report
engine code to get it to work properly. If you are a registered user of RB
9.01, you can send an email to support@digital-metaphors.com
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
The application is written in Delphi 5!!!
I just performed a test using RB 7.04, which is the latest RB version that
is available for Delphi 5. The report layout that I described worked
perfectly. If you do not have RB 7.04, you can download a trial version from
our web site. If you need an upgrade, please contact
sales@digital-metaphors.com with your serial number and registration info.
(Evidently we modified the code for RB 9.01 to fix a bug and in doind so,
caused an issue with this specific case. Which we have now fixed).
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I found out what was making it fail. I had tried to get it to work using
child subreports so with this configuration I was required to use groups
to be able to have a header and footer. When I tried it using fixed I
had left the groups header and footer in place. Once I change the fixed
to use just the regular header and footer it worked. Hopefully I will
not need to use groups in these fixed subreports.