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

Print footer dynamic...

edited September 2008 in Subreports
..Hi..
I need print a report with have a footer. Before this footer i need
print a subreport dynamic.
How could i do this?

Structure:

GroupHeader = Label
Detail = Only a variable linked with Dataset. This variable is repeated
any times.

In this point, i need print the footer dynamic. i dont know wich width
the text have and i dont know how much have printed..

any ideia?

thanks!


--

Comments

  • edited September 2008
    Hello,

    For future reference, please post using your real name when using these
    newsgroups.

    Try creating a group and using the GroupFooter band to hold your subreport.
    If this is a one page report, you could also try using the summary band.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2008
    Nico Cizik (Digital Metaphors) wrote:


    Ok, but this is result:

    Text
    Group
    Text
    group

    i need this

    Text
    text
    text < i dont know how much this is printed.
    and only the footer the page, i print

    Group


    Summary can be printed in the all pages?

    --
  • edited September 2008
    Developer.... wrote:

    Sorry.. now posting with my name. Thanks for attention.

    --
  • edited September 2008
    Hi Enzzo,

    What controls how many details are printed? In other words how are you
    controlling when ReportBuilder breaks to a new page? You need to use this
    information to determine when the last detail is printing and place your
    subreport accordingly

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2008
    Hi Nicko,

    i did the report.

    1 - click in report, select Footer.
    2 - in the footer, put label
    - Label: Auto Size True.
    - Label: WordWrap: True
    - Label: Width: 165;
    3 - On the BeforePrint of ppMainReport i use:
    - pplabel.caption := Text wich i no have ideia of how many words
    have
    - ppfooter.heigh := pplabel.height..

    This form, i put one dynamic text inside the footer.

    This not a good solution. But this is a old system (Delphi 6 and
    ReportBuilder 6), and refectoring in this moment is not avaliable.
    If you have a better solution, i appreciate
    Thanks for the attention..,
    --
  • edited September 2008
    Hi Enzzo,

    The page footer band is the only static band in ReportBuilder. It's
    vertical size needs to be calculated ahead of time so that amount of space
    can be reserved at the bottom of each page before other bands are generated.

    If you need to alter the size of this band based on a report object of
    variable size, you will need to do so manually before each page generates
    (similar to what you are currently doing). When you say you have a label
    with "Text wich i no have ideia of how many words", where is this text
    comming from? You will need to find a way to access this text before each
    page starts, measure it and alter the size of the footer band accordingly to
    get the effect you are after.

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