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

Print subReport in detail on new page

edited January 2004 in General
I have a subreport in the detailband of a report and I want it to print
on a new page (for every record). Also it must be possible to
overflow. Is this possible? If tried numerous settings but can't get
it right.

BTW: Using RB 6.03

--
Thanks in advance,

Stijn Verrept.

Comments

  • edited January 2004
    Hi Stijn,

    Try changing your subreport to a Section Style Subreport. This will start a
    new page for every subreport printed. If this does not give you the results
    you are after, you can try calling Report.DetailBand.OutOfSpace just before
    the subreport is printed.

    --
    Best Regards,

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


    Thanks this works!

    --
    Kind regards,

    Stijn Verrept.
  • edited January 2004
    Following on from this question, is there a way of printing the report
    footer opn each page even when the subreport print behaviour is of type
    pbSection. With pbChild there is no problem, but using pbSections I lose
    the page numbering which is in the footer.

    Thanks
    Susie
  • edited January 2004
    Hi Susie,

    If you are using a Section Style subreport, you can set the ResetPageNo to
    False so you do not loose the report page numbering. This property is
    published and is available on the subreport component.

    --
    Best Regards,

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

    I've done that and you're right, it numbers correctly, but it still
    doesn't show the report footer on the subreport pages where the
    PrintBehaviour is pbSection, so I'm unable to see the numbers.

    Is there anything further I can do?

    Thanks
    Susie


  • edited January 2004
    Hi Susie,

    I'm sorry, but by definition a Section Style subreport will not print the
    main report's page footer. A work around could be to create a copy of your
    existing page footer inside the subreport's footer or summary band.

    --
    Best Regards,

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

    I wondered if that was the case.

    Thanks for your help
    Susie


  • edited January 2004
    Hi Nico

    I've done as you suggest, but am having a bit of a problem with this.

    With the visible property of the sub report's detail band set to false, When
    a footer is added it generates endless pages ( > 2000 before I stopped it).
    If I remove the footer it works fine. If the detail band is visible it
    seems OK. I've just printed a simple label with caption="hello" inside the
    footer, so I don't think it's a data problem. I can't use the summary band
    as I need the footer at the bottom of each page, not just at the end of the
    section.

    Can you help?
    Susie.

  • edited January 2004
    Hi Susie,

    Are you conditionally setting the Detail Band's visibility to false?
    Without the detail band, the report engine will not be able to calculate the
    amount of space it needs to print each record of the dataset and therefor is
    printing endlessly. Occationally you will also get an opposite effect of
    the report just hanging when this is the case. Instead of making the detail
    band invisible, try setting it to dynamic height or shrink it so there is no
    space available.
    --
    Best Regards,

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

    I had set Visible it to false at the start regardless, as I'm printing
    TeeChart in the header of the subreport and don't need anything further in
    the way of details.

    Setting the height to dynamic doesn't work, but setting it to static with a
    height of zero seems to fix it.

    Thanks
    Susie
This discussion has been closed.