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

getting a different group header to display all page apart from the first one in the group

edited June 2012 in General
Hi

I have a report that has a grouping by address. In the group header
there is the address and other info and is only printed on the first
page in the group. However, I need to start any follow on pages (but
not the first page in the group) a few inches down from the top.

I have been playing around but not worked out how to achieve this. Any
ideas?

thanks

--

Comments

  • edited June 2012
    Hi Russel,

    If I understand correctly you would like to remove/hide all components
    from the group header for subsequent pages that a group is printed
    (leaving a blank white space at the top)?

    If so, I recommend first placing all the components in a TppRegion
    inside the group header to make hiding them easier.

    Inside the OnGroupBreak event, set a flag (FShowGroupFooter perhaps) to
    True letting the report know it needs to show the next group footer.
    Then inside the Report.OnStartPage event, toggle the visibility of the
    Region based on the flag value (and set the flag to False if True).
    This way the Group Footer information will only print the first time for
    a given group, yet the white space will still remain for subsequent pages.

    Best Regards,

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

    where do I find the OnGroupBreak event?

    Thanks

  • edited July 2012
    Hi Russel,

    The OnGroupBreak event is part of the Group object itself.

    If you are using RB 12 or later, you can access the group object from
    the Report Tree. If not, you can access the group object in code or by
    using the Delphi Structure view.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.