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!

Page Break, Suppress Header 1

Status
Not open for further replies.

slim2

Programmer
Oct 18, 2001
94
I have a report with the detail suppressed and the information printed in the group footer at a break. The information spans 1 page and I would like to break at a certain spot in the footer and continue the print on a new page but without the page header and then start a new page on the next group with the header as usual.

How can I cause a page break?
How can I suppress the header on the second page?

I have not been able to find anything in the crystal help on this.

Thanks
 
"How can I cause a page break?"

By dividing your footer into subsections....then on the subsection that you want to start on a new page check "New Page Before" in the section expert FOR THAT SUBSECTION ONLY!!! (Note: when you create subsections, you can apply conditions to all subsections or just one....make sure you do this for just the one you want).

"How can I suppress the header on the second page?"

you can do it 2 ways...

1. create a flag formula and place it in the footer
subsection that doesn't get split and suppress it

@Flag_PageHeaderSuppress

whileprintingrecords;
numberVar Flag := 1;

Now in the conditional suppress of the page header add the formula

WhilePrintingRecords;
numberVar Flag;
Flag = 1;

2. Simply put the following in the conditional suppress of the page header

WhilePrintingRecords;
Pagenumber > 1;

The choice between 1 & 2 depends on your report criteria... ie. do you want the page header if there is more than one page of info before you reach the footer then use method(1) but if you always fit the info on the first page and want page headers suppressed afterward select method (2) since it is the simplest.

I lean to method (1) myself...the reason is...sometimes Crystal gets confused as to what pagenumber it is on when it splits in the middle of a footer.

"I have not been able to find anything in the crystal help on this."

That is why this site is so popular. :)

Hope this helps
Jim
 
Jim,

Thanks much! I suppose if Crystal documented their product they would not be able make as much on training.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top