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

Bug or normal behavior

edited July 2004 in General
Hi all,

please do the following.

1. Go to new and select a new application.
2. On form1 drop a ppReport.
3. In the designer deactivate header- and footerband.
4. Drop a subreport in the detailband. (Subreport1: No datapipeline
assigned)
5. Set Printbehavior to pbSection.
6. Click on Subreport1. You see header and footer as expected.
7. Drop a label on the header and footer-band. (Label1 and Label2).
8. Activate the preview. You see Label1 and Label2 as expected.
9. Go to the mainreport. Change Printbehavior of subreport1 to pbChild.
10. Go to the subreport again. You see header and footer.
11. Activate the preview. You can not see Label1 and Label2 as expected.
12. Go to the mainreport and change Printbehavior to pbSection again.
13. Activate the preview. You can not see Label1 and Label2 but this is not
expected.

I can do what I want to. Label1 and Label2 keep vanished.

The only that helps is to deactivate and activate the header- and footerband
again.

Can anybody confirm this behavior on RB 7.04?

Cheers

Martin Cremer

Comments

  • edited July 2004
    Hi Martin,

    This is normal behavior. The Page Header and Page Footer bands are not
    available in a Child Style Subreport. Though they will show up in the
    designer, they are immediately disabled once the report begins generating.
    The article I posted in your last thread explained some alternatives to
    using a header and footer band in a Child Style Subreport. Here it is again
    :).

    ------------------------------------------------------------------
    Tech Tip: Subreport header/footer bands do not print for
    Child type subreports.
    ------------------------------------------------------------------

    For a subreport set to pbChild, the header/footer are not supported.
    A child type subreport prints on its parent's page space and
    therefore behaves more like a memo.

    Options:

    1. Use Title/Summary band.

    2. Use GroupHeader/GroupFooter. If you need to repeat the header
    when a page breaks then then you can create a group and
    set StartNewPage to True.


    --
    Best Regards,

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

    many thanks for your fast response. But in your example are no pagenumbers.
    This one could be harder. If not please send me a new example.

    Thanks in advance

    Martin Cremer
  • edited July 2004
    Hi Martin,

    You can add the page numbers to the report by simply adding a Footer band to
    the main report and placing a TppSystemVariable inside. I updated the
    example if you need to see it in action...

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

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Many thanks Nico,

    ShiftRelativTo SubReport1 was the key.

    Cheers

    Martin Cremer


This discussion has been closed.