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

Newbie Question 2 of 2

edited May 2002 in General
The same 3-column report from below...

I want to make the column headings and page headings say "continued..." on
subsequent pages so the person looking at the directory will realize
(easily) that they're looking at a continuation, not the start of a section.

Hints?

Eric

Comments

  • edited May 2002
    Eric,
    again, you should do this in the onprint event
    set a label on the band wich visible property you will manipulate depending
    on wether it is a continued printing
    (i do not know the exact property to check but its there)
    you can also play with the KeepTogether property wich will not print a band
    when it can't fit the remaining white space except that the band itself
    exceeds the page

    also you can play with regions, regions can be shifted to a parent region
    i did this for a client who didn't want a field to be printed or even be
    visible when the contents was empty and the empty space had to be filled up
    with the rest
    so you place one region after the other all shifting relative to each other
    and then in the onprint event you set the visibility prop

    cu
    marc

  • edited May 2002
    You can use the column BeforePrint event to display the appropriate text
    based on the page number. Place a label or a memo in the column header and
    implement the handler as shown:

    procedure TForm1.ppColumnHeaderBand1BeforePrint(Sender: TObject);
    begin
    if (ppReport1.PageNo = 1) then
    ppLabel1.Caption := 'A column header'
    else
    ppLabel1.Caption := 'A column header continued...'
    end;

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002
    Please look in the main reports demo project in your RBuilder\Installation.
    There is a demo which has a continued. See the demos #71-73 which have a
    "continued..." printed on the subsequent page when the record breaks over to
    another page.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.