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

keeptogether and newpage property in subreport

edited May 2006 in Subreports
?Hello

I would like to display information 1 on first page and after when I have
information 2 I would like that this information display on second page.
I use the property "Keeptogether" for the second information and I create
a subreport with title band empty with the property "NewPage" and detail
band empty. But I think there is a clash beetween "keeptogether"
and "Newpage" because in the result I have a blank page before the
information2 when the data in information2 are more one page and when
information 2 are less one page, information 2 appear just behind the
information 1 and not in the second page. I use a delimiter to indicate
the change of page.
Could you help me, please?
Rege



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited May 2006

    - create a main report and remove the header/footer

    - place two subreports in the detail band and set each to PrintBehavior of
    pbSection

    - use first subreport to layout information 1

    - use second subreport to layout information 2

    Now, each section will generate on its own page space (like hooking multiple
    report together). No need to use NewPage or KeepTogether....



    Best regards,

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