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

Combining 2 reports

edited February 2007 in General
I need to append a 2nd report to the master report. How is this done. I
would like it to go before the summary band in the report

--

Comments

  • edited February 2007
    Hi,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2007
    Nico Cizik (Digital Metaphors) wrote:


    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?

    --
  • edited February 2007
    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.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2007
    Nico Cizik (Digital Metaphors) wrote:


    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.

    --
  • edited February 2007
    Hello,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.