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

Problems with ppReport pbSection

edited November 2005 in General
I have a report with one subreport. This subreport has the property
PrintBehavior
set to pbSection and it's in a group footer band of the main report.
So, after this subreport is printed an another page is generated,
only with header and footer of the main report.

What can I do to solve this problem??

Thanks,

Weverton Gomes

Comments

  • edited November 2005
    Hi Weverton,

    Section subreports are meant to be placed in an empty detail band of an
    empty main report in order to combine multiple reports into one print job.
    If you need a new page, I would recommend using the TppPageBreak object.
    Otherwise I would recommend creating a main report with multiple section
    subreports in the detail band as described above.

    --
    Regards,

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

    Best Regards,

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

    In this report I need to print a page without header and without footer;
    because this I put a subreport set to pbSection. This subreport is in a
    ppGroupFooterBand of a group that is breaked by month. Then, if the user
    need of a report of three months, at the end of each month the report must
    print the subreport. Do you understand the situation? How can I say to RB
    doesn't generate a specific page??

    Thanks,

    Weverton


  • edited December 2005
    Hi Nico,

    In this report I need to print a page without header and without footer;
    because this I put a subreport set to pbSection. This subreport is in a
    ppGroupFooterBand of a group that is breaked by month. Then, if the user
    need of a report of three months, at the end of each month the report must
    print the subreport. Do you understand the situation? How can I say to RB
    doesn't generate a specific page??

    Thanks,

    Weverton
  • edited December 2005
    Hi Weverton,

    Sorry for the delay in this response.

    If a Section subreport is placed inside any other band than the detail band
    (and inside the detail band with other objects present), the subreport by
    definition will take its own page and the report will continue printing on
    the next whether there are objects present or not. I would recommend trying
    a Child style subreport and setting the Group.NewPage property to True. You
    can also try using the TppPageBreak component to cause page breaks where you
    need. Unfortunately I do not believe Section subreports will work in your
    case.

    --
    Regards,

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

    Best Regards,

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

    If I change the subreport to Child, can I say to the main report doesn't
    print the header and the footer band in the page of subreport?

    Thanks

    Weverton

  • edited December 2005
    Hi Weverton,

    Unfortunately this is not possible either due to the fact that a child
    subreport is dynamic height report. There is definitely a way to get this
    working for you however. Describe to me exactly how you would like your
    report to look and I'll see if I can come up with a solution for you.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2005

    Hi,

    Well, I must print a report that can have data of multiple enterprises. It
    have a group by enterprise. In the main report, I have a header and a footer
    (with summaries). In the group footer of enterprises, I have a subreport
    that will print another relation of data of current enterprise. But, this
    subreport cann't print the header and the footer of the main report. Because
    this I was set the subreport to pbSection.

    Do you understand the situation??

  • edited December 2005
    Hi Weverton,

    You could set up a master-detail relationship with your data and remove the
    need for groups. Then, set your report up similar to the following...

    Main Report - connected to Master Data (Enterprise)
    DetailBand
    Section Subreport - connected to Detail Data (linked on Enterprise)
    Section Subreport - connected to Detail Data

    The first section subreport will contain your original report information
    (header, footer, etc). The second subreport will contain the additional
    informatin related to the current enterprise.

    --
    Regards,

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

    Best Regards,

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

    I made how you suggested. However, I put two groups in then main report and
    three section subreports in the detail band. When I print the report, it
    generates a blank page first and after print the subreports, beggining in
    page 2. I try put the first subreport as child. When I print, the blank page
    was not generated but the header and the footer band of child subreport are
    not printed.

    I need of the groups, like in first example, and I need of the header and
    footer bands of the subreport, like in second example. What can I do?

    Thanks,

    --
    Weverton Gomes de Morais
    Programador
    Goi?nia/GO
  • edited December 2005
    Hi Weverton,

    If you place groups in the main report along with Section Subreports, you
    will get blank pages at the beginning or end of your report. You will need
    to keep each individual group localized to the subreports.

    --
    Regards,

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

    Best Regards,

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

    I need print the three subreports grouped by enterprise and by month and
    each subreport has header and footer band.

    Example: If the user select to print data from enterprise 1 and 2 in the
    months 1 and 2. The report must print the three subreport for entreprise 1
    in month 1; the report must print the three subreport for entreprise 1 in
    month 2; the report must print the three subreport for entreprise 2 in month
    1 and the report must print the three subreport for entreprise 2 in month 2.

    What can I do??

    Thanks,

    --
    Weverton Gomes de Morais
    Programador
    Goi?nia/GO

  • edited December 2005
    Hi Weverton,

    My first suggestion would be to create a repor that show only one month of
    data at a time. Then based on the user input, alter the dataset to print
    each individual month as needed.

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