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

Starting a sub-report on a new page

edited July 2004 in General
I've seen the tech tips, but my request is not covered there. I just want
some sub-reports to start on a new page. Is there an easy way to do this?

Is there a more up-to-date version of the manual? I've got the Developer's
Guide third edition, and it covers a lot of the concepts, but I can't seem
to find any of these detailed sorts of things in it. Well, maybe it does -
I found how to concatenate info there (I think there ought to be a
component to concatenate fields anyway, but that's another issue. Ah, I
see it is shown in the Query designer help.)

Now, on looking further I've found that a report header has a "New page"
option in the menu. The odd thing is that this causes the header to appear
on one page, and the body of the sub-report to appear on the next. Surely
it should kick to a new page first? And what is "page style"? It isn't
documented in the manual anywhere.

Is there some documentation I'm missing?

Thanks in advance, /Matthew Jones/

Comments

  • edited July 2004
    You may be wanting to point me at the TppSubReport.PrintBehavior property
    but this seems to get things all wrong. I have 5 subreports on the main
    report, with nothing else but a header and footer. But the top-most
    subreport prints last when I tell them all to be sections. This is all
    with RBE 7.04 which I think is the latest.

    Why might this be happening?

    /Matthew Jones/
  • edited July 2004
    Aaaargh! There is so much power, but so little control!

    It appears that the order is set not by the visual order, but by the "
    front to back" order. Okay, so I can click in order and sort it out. Not
    ideal, but workable I suppose. Except then I find that my first page is
    empty, because the first sub-report starts on a new page. So I turn it
    into a child, and now it is at the back again! Is there a way to tell RB
    to output things in the visual top-to-bottom order? Or something else I
    could use to do this?

    /Matthew Jones/
  • edited July 2004
    Can anyone tell me what this means please? From the TppSubReport main
    help page:
    "Tip: In order to keep section type SubReports from taking up any space in
    the parent report, place the SubReport in a band by itself and set the
    Band's PrintHeight property to phDynamic."

    I can only get on detail band. I thought it might mean a region, but that
    doesn't have a printheight.

    Is there a property editor for the components in the end-user reporting
    tool? That's what I'm using.

    /Matthew Jones/
  • edited July 2004
    Hi Matthew,

    1. One way to force a subreport to start on a new page is to set it as a
    Section Style subreport. This will by default start a new page for that
    subreport. You can also try using the Band.OutOfSpace property to force a
    page break.

    2. The third edition of the Developer's guide is the latest edition. The
    ReportBuilder help is one of the most complete and extensive help
    documentations available for any reporting tool out there. We are
    constantly working to improve it as new versions of ReportBuilder are
    released.

    3. The TppHeaderBand class does not contain a NewPage property. TppGroups
    on the other hand do contain this property and should work accordingly.

    4. The PageStyle band is generally used to display report components behind
    the actual report, such as form lines or a watermark. Please see the
    ReportBuilder help on the TppPageStyle topic for more information.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Thanks for that. I'm half making progress with these things.


    In the report designer, create a new report with a title. Right click on
    it and the menu shows "NewPage" (all one word). Put some text in the title
    area, in the header area, and the detail area. Click preview and all is as
    you'd expect. Now select the NewPage menu to get the check, and then
    preview. Now you will see Title on the first page, and then nothing else
    until the second page where you see the header and the detail again. I'm
    not sure what the purpose of this could be.

    /Matthew Jones/
  • edited July 2004
    Hi Matthew,

    Sorry, I thought you said you were setting a NewPage property of the header
    band, not the title band. The purpose of this feature is to simply print
    the title or summary band on a new page. In some cases, you may want your
    report to have a complete title or cover page and this feature makes this
    easier to accomplish. As I mentioned before, all of these features are
    documented in the ReportBuilder help. See the TppTitleBand.NewPage topic
    for the documentation on this property.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Ah! The "why" is what was missing - yes, to put a whole page-full of title
    on its own page. Now it makes sense. It might be worth adding that to the
    help.

    I take it there is no PDF version of the component reference? I'm sure it
    would help me as I could then read the details of the components in
    advance and not wonder around as I go.

    /Matthew Jones/
This discussion has been closed.