Home Subreports

On group change, start new page by code

edited December 2003 in Subreports
I want to dynamically set the 'on group change, start new page' function,
that is , in some condition it will checked and in other condition it will
not checked. Is there any method to code it?

Comments

  • edited December 2003

    You need to configure the groups prior to calling report.Print. Do not
    modify the group properties while the report is executing.

    When you create a group in the report designer, a TppGroup object is created
    for the report. You can see this object by using the drop down list in the
    object inspector and then selecting it. Programmatically you can access the
    TppGroup objects either by name or via the Report.Groups[] array property.

    example:

    myGroup1.NewPage := True;

    OR

    myReport.Groups[0].NewPage := True;

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.