Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep Group Together within another Group

Status
Not open for further replies.

nlaliberte

Programmer
Apr 26, 2007
79
US
I'm using Crystal XI and an ODBC Connection to a SQL Server.


The issue I'm having is with a Group where 'Keep Together' is true is creating a blank page.

Essentially Group 1 is the top group in the report, and each new Group 1 starts on a new page.

I have Group 2 set to 'Keep Together' to prevent the group headers from populating at the bottom of the page with no details below it. However, when the first group 2 is too long for the page, I end up with Group 1 headers followed by a blank page, with group 2 starting on the second page. It ends up looking something like this.

Page 1
Page Header
Group 1 Header
Page Footer

Page 2
Page Header
Group 1 Header (cont)
Group 2 Header
Details
Page Footer

Page 3
Page Header
Group 1 Header (cont)
Group 2 Header (cont)
Details
Group 2 Footer
Group 1 Footer
Page Footer



The functionality I want is for Group 2 to 'Keep Together' unless it's the first sub-group of Group 1, but I can't seem to figure out how to code this as the 'Keep Together' option on the group level is a simple checkbox...

Any ideas?



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top