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

Need to Duplicate the detail band in 2 sections

edited October 2014 in General
I have a check printing program I need to make it print 2 stubs on the same
page. I tried using a subreport with duplicate queries and pipelines. The
subreport restarts with the first record on the second page instead of
continuing on the last record it printed.

Using XE2 with RB 15.04

Thanks,
Perry Jacobs

Comments

  • edited October 2014
    Hi Perry,

    If you would like to use subreports, be sure the subreport is not
    connected to any data so it simply pulls data directly from the main
    report's pipeline as it traverses.

    Another option is to simply create a region inside the detail band with
    the check information inside. If it is sized correctly, two regions
    will print on each page.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2014
    Nico,

    I tried the subreport method with a fixed subreport in the group header but
    it only prints the first detail on each page.

    Given that the query for the main report contains all of the detail, I have
    a detail band to print each transaction and a group on check# to page break
    when the check# changes, which band should the subreport be in?

    Thanks,
    Perry

  • edited October 2014
    Hi Perry,

    If you have the group set to break (and break a page) for each check
    number, you will always only get one check per page.

    I suggest placing the subreport inside the detail band. If you need to
    use groups, set NewPage to False so multiple groups can print on a
    single page. Also be sure you have enough room to fit the subreport
    plus the group header/footer on half a page.

    Best Regards,

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