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

Page break

edited September 2010 in End User
Hi,

I'm not sure if this is a bug, a feature or if I'm just using it
incorrectly, but Page Break in RB 12 Enterprise for Delphi 2009 behaves a
bit strangely. The first page looks OK but then every other page has a gap
at the top of it.
To reproduce:
Create a simple report from a single table, drop a few fields into the
detail section of the report and put a page break underneath the fields but
still in the detail section and preview. The first page is fine but every
subsequent page has a gap about the size of the detail section above it,
with the effect that all the text is shifted down the page. This only seems
to be a problem if the detail band is set to static print height. If it's
dynamic then everything looks fine.

Can you advise please?

Thanks,

Steve Branley

Comments

  • edited September 2010
    Hi Stephen,

    When using the PageBreak component, remember that once the page breaks, the
    remaining components in the band will print at their relative vertical
    position inside that band (not the top of the band). To work around this,
    you can place these components near the top of the detail band (overlapping
    other components if needed) in line with the initial page components.
    Components in the z-order before the pagebreak will be printed on the first
    page and components after will be placed in the second.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2010
    I don't think that's the issue here. The ONLY components on this form are in
    the detail band and are above the page break. The report shows personal
    details - name and email address - and each page has a different person and
    is a single record within the dataset. The issue is that the first person's
    record is shown in the correct place but every subsequent person's record is
    shifted down by the amount equal to the space taken up by the first person's
    details, despite the fact that all the components are ABOVE the page break.

    I hope that makes sense, but if I've got the wrong end of the stick, sorry!

    Steve



  • edited September 2010
    Hi Stephen,

    Thanks for the clarification. We are able to recreate this and will look
    into a solution.

    A more robust way to design this report would be to use groups rather than a
    page break to keep each person on a separate page. Simply create a group
    based on a unique field and set the group to break to a new page (NewPage :=
    True). This will give you the effect you are after without the need to use
    the pagebreak component at all.

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