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

3 on the same page

edited August 2004 in General
Hello,

I am using D7 Ent and RB 7.04.

I want to create a form on the top 1/3 of a page (in portrait mode) and then
have RB duplicate it (with data) twice more on the bottom two thirds of the
page. The idea is that if we have the modify the form later, we only have
to modify one form (not three).

Is this possible?

Kind Regards,

Kevin.

Comments

  • edited August 2004
    Hi Kevin,

    I would suggest creating a report with three fixed style subreports inside
    the detail band, set to measure exactly 1/3 the page height. Then when you
    load your report, dynamically load a single report template into each of the
    subreports. This way you will only need to mantain one report template and
    it will be printed three times per page.

    Check out the following example on how to dynamically load a subreport.
    Though it does not use fixed style subreports, this should get you on the
    right track.

    http://www.digital-metaphors.com/tips/DynamicallyLoadedSubreportForHeader.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    I forgot to mention that this needs to be done in the designer. Is that
    possible?

    Kind Regards,

    Kevin.

  • edited August 2004
    Hi Kevin,

    I'm a bit unclear about what exactly you would like done inside the
    designer. When loading the designer, you could use the OnShow event to load
    the template files into the fixed subreports inside your main report. You
    could also create two separate templates, one with the three empty
    subreports and one with the form template and load them sequentially before
    the designer shows. As far as giving your users the ability to control this
    from an end-use application, you would need to either create another menu
    option in the RB designer that automatically loads the templates or ask them
    to load a certain template ahead of time before the designer is created.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    Hi Nico,

    The example is a project that shows how to GetDirectories. There are no RB
    components in the example.

    Kind Regards,

    Kevin.


  • edited August 2004
    Hi Kevin,

    The example I posted below simply contains a form with two datapipelines
    connected to two tables, a report and a button. When the print button is
    clicked, a report template is dynamically loaded into the subreport located
    in the header of the main report on the form. I am unsure which example you
    are speaking of below. Just to be sure I downloaded the example using the
    link I gave before and tested it successfully with ReportBuilder 7.04 and
    Delphi 7.

    --
    Best Regards,

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