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

2 Page report

edited October 2004 in End User
Can anyone help me? I am trying to create a report across 2 pages.

Thanks

Mark
PCDATA

Comments

  • edited October 2004

    If you set DetailBand.PrintHeight to phDynamic, then the detail band can
    break across pages.

    Another approach is to create a main report with no header/footer. Place two
    subreports in the detail band and set each to pbSection.



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2004
    Hi Mark,

    If you are trying to break a page to force a two page report, you can either
    use a Section Style Subreport or one of the methods described in the article
    below.

    ---------------------------------------------
    Article: Forcing a Page Break
    ---------------------------------------------

    Question:

    How can I force a page break occur based upon
    a condition calculated at run-time.

    Solution:

    Define a Group that starts on a new page when
    it breaks. Then use the Group.OnGetBreakValue
    event to control the timing of the break.

    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.

    3. Using the object inspector's drop down list,
    find and select the TppGroup object.

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

    5. Add code to set the break value.


    procedure Form1.Group1OnGetBreakValue(Sender: TObject; var aBreakValue:
    String);
    begin

    if condition then
    aBreakValue := 'Some Value';

    end;


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