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

Forcing a page break

edited September 2001 in General
(using RBPro 5.56 and D5)

I'm trying to follow the Tech-Tips instructions on forcing a page
break, but must be missing something.

I've created a Group with its break on a custom field (an unchanging
label) and set New Page to True. I want to generate a new page for
each new record (this is a simple traversal of a single table, but
there is no field that is guaranteed to be different from record to
record. The only thing I can count on is the record number (recno)).

In the OnTraversal event handler for the pipeline I assign the value
of the table's current recno to a private variable, and pass that
variable to aBreakValue in the OnGetBreakValue event. That does not
generate a new page.

What am I missing?

(Side Note: It's not clear in the Tech-Tips whether the value assigned
to aBreakValue needs to change from record to record in order to force
the page break. The example doesn't indicate that it does, which
makes you wonder if the simple act of assigning a value to aBreakValue
is all that is needed, still....)

Thanks,

Gene Weinbeck
gene@FundRaiserSoftware.com
Professional Support Software

Comments

  • edited September 2001
    I have solved this problem by stretching the band height so that it occupies
    the size of the page, or if multiple bands so that the sum of the band
    heights = the page height and that works perfectly. If the additional bands
    are subreport bands you can either make the main band the size of the page
    and place the subreport bands on top or size each such that the cumulative
    height is the page height.

    --
    Regards,

    John

    www.barjohn.com
    johng@barjohn.com
  • edited September 2001
    "John Griffith" wrote:


    Of course.

    At first, I tried stretching the GroupFooterBand, then realized that
    you meant the Detail band - no need for a group at all.

    Thanks for your help.

    Gene Weinbeck
    gene@FundRaiserSoftware.com
    Professional Support Software
  • edited September 2001

This discussion has been closed.