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

records go to next page

edited May 2006 in Subreports
I have a report with 2 sub reports. One subreport I'd like to add some logic
like the following , probably on the BEFORE GENERATE event... something like
this..

The records MUST print in the order in which the USER selected them, not
necessarily grouped by specific fields.

Before the record is placed on the page, look to see

if (Field1 is diffent than the previous Field1 record) or (Field2 is
different than the previous Field2 record) then
Place on Next page.

Any ideas?

Jim

Comments

  • edited May 2006

    - One option is to create two groups for the subreport - one for Field1 and
    one for Field2. Configure the groups to start a new page

    The other option is to create a Group on a Label and use the OnGetText to
    return a composite value:

    - add a TppLabel to the subreport and set visible to false

    - add a Group on the Label and set Grou NewPage option to true

    - implement an event-handler for the TppLabel.OnGetText event

    Text := Field1 + Field2; // probably need to need some formatting here to
    pad a fixed length value with spaces




    Best regards,

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