Discussion:
Problem with widow header.
(too old to reply)
Chuck J
2007-01-30 23:47:27 UTC
Permalink
I am using Rave 6.5.0 BE with BDS2006.
I am printing out a single database table of employees sorted by
department, then name.

My sorted database records look like:


Accounting Fred
Accounting Joe
Accounting Mary
Sales Ed
Sales Mark
Sales Lou
Support Kim
Support Judy
etc.

I have a group header keyed on department to print a header each time
the department changes and at the beginning of a new page. In the Rave
designer, its Band Style Editor sequence is G 1P.

My problem is that if a department ends on the bottom of a page, the old
department header will print at the start of the new page, followed by
the new department header with no data in between(a widow header).

For example, from the database above:

End of Page 1:

Accounting <Header>
Fred <data>
Joe <data>
Mary <data>

Start of Page 2:

Accounting <Header>
Sales <Header>
Ed <data>
Mark <data>
Lou <data>

As indicated, a header was printed for Accounting on page 2 even though
there were no more accounting records to print. One can use the
MinHeightLeft propery to prevent an orphan header at the bottom of a
page, but I cannot figure out how to prevent a widowed header at the top
of a page.

Any ideas would be appreciated!
Thanks,
Chuck
Guido Weber
2007-02-01 10:38:21 UTC
Permalink
Hi Chuck

I just had a similar problem where the last detail record
of a group was duplicated at the top of a new page. I solved
it by setting ReprintLocs for the detail band to None.
You might try playing with the ReprintLocs for the group
header band.

HTH
Guido
Post by Chuck J
I am using Rave 6.5.0 BE with BDS2006.
I am printing out a single database table of employees sorted by
department, then name.
Accounting Fred
Accounting Joe
Accounting Mary
Sales Ed
Sales Mark
Sales Lou
Support Kim
Support Judy
etc.
I have a group header keyed on department to print a header each time the
department changes and at the beginning of a new page. In the Rave
designer, its Band Style Editor sequence is G 1P.
My problem is that if a department ends on the bottom of a page, the old
department header will print at the start of the new page, followed by the
new department header with no data in between(a widow header).
Accounting <Header>
Fred <data>
Joe <data>
Mary <data>
Accounting <Header>
Sales <Header>
Ed <data>
Mark <data>
Lou <data>
As indicated, a header was printed for Accounting on page 2 even though
there were no more accounting records to print. One can use the
MinHeightLeft propery to prevent an orphan header at the bottom of a page,
but I cannot figure out how to prevent a widowed header at the top of a
page.
Any ideas would be appreciated!
Thanks,
Chuck
Loading...