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

Basic: print a detail band in the next page

edited July 2006 in General
-- Delphi 2005, Report Builder 9.01

Hello, all!
Basic doubt: how do I do to print a TppDetailBand in the next page
when its content doesn't fit in the current page? I didn't find a
property related to this. Note: this detail band also has a TppSubReport
on it.
Thank you.

Marcos



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

Comments

  • edited July 2006
    Hello, all!
    Keeping with my last post, I would like to add some questions that
    also could help me with the report that I'm working.
    I added a group in my report just to have the opportunity to
    separate the detail bands with a line (I put the line in the Group
    Footer). It's working to me, but I have the following questions related
    to this:
    - Is there a way for the preview not to show the groups when I
    preview the report? I mean, because this group is just to separete the
    detail bands it doesn't has any important meaning other than that, so I
    wouldn't like to see it in the preview's left panel, just the detail
    bands like a simple report.
    - Is there a way for me to know, in code at runtime, when the Group
    Footer is the last thing to be printed in the page before the page's
    footer and also the first thing to be printed after the page's header. I
    ask this because I would like to have the opportunity to make the Group
    Footer invisible in these cases for it not to show the line.
    I know that all these questions and the one that I asked in the last
    post could be in the documentation, but I just ask your patience a
    little bit to answer them to me because it can be hard to find where
    exactly they are in the documentation.
    Thank you very much.

    Marcos

    TppSubReport



    --- posted by geoForum on http://delphi.newswhat.com
  • edited July 2006
    Hi Marcos,

    Regions, Groups, and Subreports all have a KeepTogether option. In your
    case I would recommend placing a Region inside your detail band with Stretch
    and KeepTogether set to True and ParentHeight, ParentWidth set to True as
    well. Then be sure all components that are already present inside the band
    are within the region. This should keep the region together when it breaks
    across a page.

    --
    Regards,

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

    Best Regards,

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

    You can control whether the group shows up in the report outline using the
    Outline Settings dialog. This can be accessed by selecting the Report |
    Outline Settings option from the main menu in the designer. Simply uncheck
    the group in the treeview at the top.

    You can find the current position on the page using the
    Report.Engine.PrintPosRect property. Checking this value inside the
    Band.BeforePrint event would give you an opportunity to hide it if it is
    just before the footer band or the first band on a page.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Thank you, Nico.

    Marcos

    your
    Stretch
    as
    band
    breaks
    TppSubReport



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.