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

Printing "continued" on next page

edited February 2003 in General
If a group breaks across a page, I want to reprint the group header text (which is dynamically created) followed by "continued...". I was using the OnGetText property of the TppLabel component to determine the text of the lable in addition to setting the "continued..." as necessary.

I was simply checking the Breaking property of the group to see if I needed to add "continued...", and this works fine EXCEPT for the very first time that the label is printed.

Text := [Insert function to determine text]
if not grpMain_ClaimFormat.Breaking then
Text := Text + ' continued...';

Is there a better way to do this?

Brandon
--
"In the beginning the universe was created. This has made a lot of people very angry, and has been widely regarded as a bad move." - Douglas Noel Adams (1952-2001)
[Please remove "nospam_" from email address to reply.]

Comments

  • edited February 2003
    Please see the main reports demos in the RBuilder installation. See report
    number 71. It prints a 'continued...' label on the next page. It uses the
    DetailBand.Overflow property to determine if the label should be shown. The
    event to use is the DetailBand.BeforePrint event.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited February 2003
    [In my best Agent Maxwell Smart voice....]Ahhh, the old "Overflow" trick.

    Didn't even realize that was there, but then I was focusing on the group, not the detail.

    Thanks,

    Brandon
    --
    "In the beginning the universe was created. This has made a lot of people very angry, and has been widely regarded as a bad move." - Douglas Noel Adams (1952-2001)
    [Please remove "nospam_" from email address to reply.]
This discussion has been closed.