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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to keep together two sections?

Status
Not open for further replies.

ipm

Programmer
Apr 5, 2005
16
DE
I'd like to keep two sections of the report always on the same page, I don't want then to be splitted. Is it possible?
 
Which sections? For a group, choose [Change Group] and you should find a [Keep Group Together] option.

It helps to give your Crystal version, since newer versions have extra options, and some extra problems. My workplace is currently upgrading from Crystal 8.5 to Crystal 10, both using databases created by SQL 8.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
I was talking about two report footer sections.

I am using Crystal Reports XI

 
You could adjust the first of them to always begin on a new page. Or do a page count to control it, as follows:

//In the page header
WhilePrintingRecords;
NumberVar LineCount :=0;

In a one-line setion
WhilePrintingRecords;
NumberVar LineCount := LineCount + 1;

In a two-line setion
WhilePrintingRecords;
NumberVar LineCount := LineCount + 2;

Then test line-count against a summary count. Start a new page if there isn't room

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top