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

Inserting page break and automatcally sizing first page of a report

edited September 2005 in General
Hello

I have a report with a chart on it. Under this chart is space for a
subreport which is in tabular format.

For some reason I have never managed to get the header of a subreport to
display, so my column headings are outside of the subreport and in a region.
If my table has 3 rows or less, I am fine.

However, if the sub report has more than 3 lines I need the whole sub report
and the header region to be printed on the second page of the report. I.e.
I dont want some rows on page and other rows on the other page.

What is the best way to approach this?

Cheers

Paul

Comments

  • edited September 2005

    For a subreport set to PrintBehavior of pbChild, use the Title/Summary or
    GroupHeader/GroupFooter bands. The page header/footer are not supported
    because the child subreport prints on the parent's page space.

    You may also want to set subreport.KeepTogether to True, based upon your
    requirements.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2005
    Thanks Nard

    This works well. If the subreport has gone onto a new page of my report due
    to lack of space it means that I can make my graph bigger and move my legend
    box down a bit

    What is the best way to do this?

    Cheers

    Paul

  • edited September 2005

    You can use the detailband BeforePrint event to resize the objects in the
    detail band.

    You can check the DetailBand.Count property to determine how many times the
    band has printed on the current page. If the value zero, then you are at the
    start of the page.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.