BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with widow header.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports)
View previous topic :: View next topic  
Author Message
Chuck J
Guest





PostPosted: Wed Jan 31, 2007 5:47 am    Post subject: Problem with widow header. Reply with quote



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
Back to top
Guido Weber
Guest





PostPosted: Thu Feb 01, 2007 4:38 pm    Post subject: Re: Problem with widow header. Reply with quote



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

"Chuck J" <user (AT) domain (DOT) invalid> schrieb im Newsbeitrag
news:45bfd951$1 (AT) newsgroups (DOT) borland.com...
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.