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

group; pagenumber; pageCount 2

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
HI,

My report have a group section. I want each group to be printed in a separated page. To do that, in section format, I check the "new page after check box".

This will create a new page after each group. However it creates a new problem. The last group will force a new page after, and so I will get a blank page at the end of my report.

To try to avoid this problem after I made that check I put into it a formula: PageNumber = PageCount

This solve the problem but I don´t understand way... Is it luckly... is this will work to all situayions?

The pagenumber function I understand...but I don´t understand how crystal will (and when) make that page count...

Any help is appreciated!

Sérgio Oliveira
 
Sergio,

You are making this way too difficult.

In the group expert where you format to new page after, there is an X-2 button to the right of that checkbox. Click on it and enter the following statement:

Not OnLastRecord

This will keep the new page after from happening at the end of the report. Software Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
You could also suppress your report footer, which is printing that last page. If the last page is blank, then there is nothing in the Report Footer and you can suppress it. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top