×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Suppressing Report Footer on a report that uses page renumbering between groups

Suppressing Report Footer on a report that uses page renumbering between groups

Suppressing Report Footer on a report that uses page renumbering between groups

(OP)
Hi,

I have a report where i renumber pages after each change in group. The last page is a Terms & Conditions page and it is in the Report Footer. Right now it is continuing on the page numbers of the last group in the report. I want to be able to suppress the report header only on this last page since it applies to the whole report, not just the last group.

RE: Suppressing Report Footer on a report that uses page renumbering between groups

I don’t understand what you want to suppress, since the report header is only at the beginning of the report. Regardless, you can use the following to suppress a section or a field or pagenumber.

Create a formula {@pgno} and place it in the page footer and suppress it:

Whileprintingrecords;
Numbervar pgno;
pgno := pgno + 1;

Then use the following as your suppression formula:

Whileprintingrecords;
Numbervar pgno;
Pgno = totalpagecount

-LB

RE: Suppressing Report Footer on a report that uses page renumbering between groups

(OP)
Hi LB,

Thanks for the quick reply.

Sorry, I meant I wanted to suppress the page header (or more specifically, fields in the Page Header).

I tried your suggestion, but it did not work for me.

Note: In the Report Footer, even though the numbering restarted and shows Page 1, it is still adding information from the page header of the previous record's group header. Not sure if that gives any clues?

RE: Suppressing Report Footer on a report that uses page renumbering between groups

Sorry--should have tested that. Just tested the following. This assumes that you have "new page after" set on the group footer.

Create two formulas:

//{@true} to be placed in the group header and suppressed:
whileprintingrecords;
booleanvar flag := true;

//{@false} to be placed in the group footer and suppressed:
whileprintingrecords;
booleanvar flag := false;

Then use field suppression for fields in the page header with the following formula:

whileprintingrecords;
booleanvar flag;
flag=false //note no colon

-LB

RE: Suppressing Report Footer on a report that uses page renumbering between groups

(OP)
Awesome!

Thanks so much LB. It worked well! I've been at this all morning.

Have a great day!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close