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

Main Report adding an extra page when a subreport is on the summary band.

edited April 2008 in General
I am using Delphi 2006 and RB 10.4 Ent.

I have a report that has title,detail,summary, and footer band. On the
summary band I have data summarized and a sub-report. The sub-report
only displays if certain data is available. When the sub-report is
visible, it moves the last label in the summary band to another page
that is printed after the sub-report. I have to set the sub-report to a
section to get make it print on another page. Any knowledge as to why
I am getting a extra page with the label on it, instead of it being on
the main report in the summary band. Also, if I remove the last label
in the summary band it prints just fine. I have a copy of the report if
its needed.

--

Comments

  • edited April 2008
    Hi Semone,

    A section style subreport by definition will print as if it is a completely
    new report (starting on a new page and breaking after it is finished). Any
    main report components that are printed after a section subreport will be
    printed on a new page.

    Try using a Child style subreport and the PageBreak component to control
    where new pages are started.

    --
    Regards,

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

    Best Regards,

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


    Thanks, Nico I got the page break to work fine. But its still taking
    that last label in the summary band and putting it on the next page. So
    now instead of having 3 pages, I have 2 pages, but the label is now on
    the page 2 with the sub report. Any more suggestions?

    --
  • edited April 2008
    if you can re-created this in a demo that uses just JIT pipelines, it would
    be easier to either provide support and/or fix (if needed).

    Ed Dressel
    Team DM

  • edited April 2008
    Edward Dressel [Team DM] wrote:




    Thanks for the help. I was recreating the report to send to you guys
    and re-did the report. And now it works. so I take it that the report
    was corrupt.

    --
  • edited April 2008
    Semone wrote:



    I do have one more question, this is an after thought. On this same
    report, I have a header, I would like for the header not to show on the
    subreport page, is there away to make that header invisible? I tried
    doing reportname.headerband.visible := false; when the
    beforesubreporttitleband generates. Any suggestions?

    --
  • edited April 2008
    Hi Semone,

    If you are using Section style subreports, the main report header band will
    not show up when the subreport is printing. If you are using Child or Fixed
    style subreports, you will need to find a way to determine which pages these
    subreports begin and toggle the visibility of the header band before the
    page starts printing. The Subreport Titleband.BeforeGenerate event firest
    too late to hide the header band.

    --
    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.