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

Keeping details and header together

Status
Not open for further replies.

azwaan

Programmer
Jan 11, 2002
42
0
0
i have a report grouped displaying summarised information in the form of running totals.

the running totals are in the footer, while the group name is in the group header.the detail section have been suppresed.

the problem is in some pages, the group header is displayed at the bottom of the page, and the details are continued on the next page cos of insufficient space to print.

i want such headers to be printed on the next page with the details but i do not want to enable the "new page before or after" options, as the this would mean a lot of wasted paper.

can anybody help..
 
In Crystal 8.5, right-click on a Group section, and choose [Change Group..]

Select Keep Group Together. This will tell Crystal to begin a new page if it cannot print the whole of a group on the existing page.

The drawback is that when the first group is too big for the first page, it will begin it on page 2. It does this even when the group is more than one page long, that's a limit on Crystal 8.5.

Madawc Williams
East Anglia, Great Britain
 
the real solution to this is to put the first detail record into the header...then suppress the first detail record of the group so it won't show twice.

This way the the header is never orphaned...

do this by putting the header in its normal section and creating a subsection of the header which has identical fields as the detail section.

have a formula suppressed in this group subsection

//@Flag
WhilePrintingRecords;

BooleanVar Flag := True;

if you allow a header to repeat on a new page then put a conditional suppress on the subsection

WhilePrintingRecords;
inrepeatedGroupHeader;

in the detail section conditional suppress have a formula

WhilePrintingRecords;
BooleanVar Flag ;
BooleanVar temp;
temp := Flag;
Flag := False;
temp;

this resets the flag to false after the first record

Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
Why don't you just move your header to the footer? If you're not displaying the details, it shouldn't matter that the header is after the details. Hope that makes sense.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top