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

TitleBand

edited October 2006 in General
Hi,
I've some problem to create a report with a titleband
of more than one page.

Is it possible ?

This titleband contains a memo that is stretched on runtime
but it is trunked at the end of the page without create a
new page.

TIA

Comments

  • edited October 2006
    Hi Pierpaolo,

    The title band a dynamic height band so it should be able to overflow to the
    next page when space runs out. In my quick testing with RB 10.04 and Delphi
    7, the title band successfully overflowed to the next page when a
    stretchable memo became too big. Be sure you have the PrintHeight of the
    band set to phDynamic.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    Nico,
    I forgot to write that I'm using
    ReportBuilder 7.04 and Delphi 6.

    PrintHeight is already set to phDynamic and ppMemo.Stretch is true.

    Thank



  • edited October 2006
    Another detail:

    I set titleband.NewPage := true because I need the titleband separate
    from the data of the report.

    If I set titleband.NewPage := false it work !
    but it is not what I need.


    Some Ideas ?

  • edited October 2006
    Hi Pierpaolo,

    The NewPage property is used to print the title or summary band on it's own
    single page. It was not designed to allow multiple pages. Below are a few
    work-around options.

    1. Try creating a new report with only a detail band. Inside the detail
    band place two Section style subreports. The first subreport will represent
    the title band and the second subreport will contain all other report
    information from before. This should give you the exact effect you are
    after.

    2. Take a look at the article located in the Tech-Tips newsgroup in the
    Pagination thread about forcing a page break. You could perhaps get the
    effect you are after using one of those techniques.

    3. ReportBuilder 9 introduced the TppPageBreak object that allows you to
    break to a new page when ever you like inside a report. You might try
    downloading the latest version of ReportBuilder and testing with that.

    --
    Regards,

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

    Best Regards,

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

    I've already tryied the Tech-Tips newsgroup in the
    Pagination thread about forcing a page break.

    I do this operation:

    1. From the Report Designer, select Report | Groups
    to access the Group dialog.

    2. Define a group based upon a static component,
    such as a Label or Variable. Click the
    Start new page checkbox. Close the dialog.

    This is ok, but the object created is a 'TppGroupHeaderBand'
    not a 'TppGroup', so I cannot

    "4. Create an event-handler for the Group's
    OnGetBreakValue event."


    What I wrong ?



  • edited October 2006
    ooops,
    I read again the tip and I understand.
    Unfortunately this solution doen't work.

    thank you again Nico,

  • edited October 2006
    Hi Pierpaolo,

    I would recommend trying the first suggestion I gave using the two section
    style subreports. This will take minimal redesign work and should give you
    the exact 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
  • edited October 2006
    Hi Nico,
    thak you for your suggestions.
    I implement your first suggestion and it work fine.

    Thank you again.


This discussion has been closed.