For future reference, we prefer you use your real name when posting to these newsgroups.
The easiest way to print two reports as one is to create a single main report containing only a detail band. Inside the detail band place two Section style subreports, each containing a report to be merged. The result will be one report printed after the other as if they were one report.
The easiest way would be to save your two current reports that you would like to merge as report templates on your hard drive. Then you can manually load these templates into the subreport design. Simply place the subreport on your main report, select the tab at the bottom to design it, then select File | Open.. from the main menu.
You may also want to take a look at the subreport demos located in the \RBuilder\Demos\1. Reports\... directory. There are numerous examples of how to work with subreports.
Ok thanks, I have worked with sub-reports before. But I am wanting to append a report to the end of another report based on a condition. So basically if this condition is true, then when report 1 is done running run report 2 and add it on the end. Because I will also run report 2 by itself at times.
Placing two section subreports in the detail band of a main report will print one report after the other. One option would be to toggle the visibility of each subreport based on which one you would like to print. Another option would be to create and add the subreports in code based on which reports are to be printed the load the templates as you need them.
Comments
For future reference, we prefer you use your real name when posting to these
newsgroups.
The easiest way to print two reports as one is to create a single main
report containing only a detail band. Inside the detail band place two
Section style subreports, each containing a report to be merged. The result
will be one report printed after the other as if they were one report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for the response Nico. How do you assign the reports to the
sub-report band? I set the sub-report to section style. How do i merge
them?
--
like to merge as report templates on your hard drive. Then you can manually
load these templates into the subreport design. Simply place the subreport
on your main report, select the tab at the bottom to design it, then select
File | Open.. from the main menu.
You may also want to take a look at the subreport demos located in the
\RBuilder\Demos\1. Reports\... directory. There are numerous examples of
how to work with subreports.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Ok thanks, I have worked with sub-reports before. But I am wanting to
append a report to the end of another report based on a condition. So
basically if this condition is true, then when report 1 is done running
run report 2 and add it on the end. Because I will also run report 2
by itself at times.
--
Placing two section subreports in the detail band of a main report will
print one report after the other. One option would be to toggle the
visibility of each subreport based on which one you would like to print.
Another option would be to create and add the subreports in code based on
which reports are to be printed the load the templates as you need them.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com