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.

Jobs

Suppressing pages within groups > than 2

Suppressing pages within groups > than 2

(OP)
We have 30 groups of machines. Within each group we have 3 status types, Frozen, Planned and Available. When printing this report we double side to printer and so only want to print a total of 2 pages per group. Since each group has a varied number of orders in each status group as well as 4 possible comment lines beneath each order, so there is no way to know the number of records that may be returned on each page. I would like to suppress a page if it is greater than 2.

I've got the page numbers resetting on each group so I can easily identify pages over 2, and I can suppress each group and detail line on pages greater then 2, but the page prints 'blank'. Since it is not truly blank but suppressed, I am not sure where to go with this.

Any thoughts would be greatly appreciated.

Thank you,

Jill Pleau

RE: Suppressing pages within groups > than 2

In the section expert, make sure that you have also checked "suppress blank section" the relevant section.

-LB

RE: Suppressing pages within groups > than 2

(OP)
Thanks for the suggestion, this didn't work for me.

RE: Suppressing pages within groups > than 2

I tested this, and was able to limit to two pages per group, BUT could not find a way to eliminate one blank page at the end of the report. If this is close enough for you, then do the following:

Format all page sections to "suppress blank section".

Create two formulas (these can be suppressed):

//{@Reset} to be placed in the group header:
whileprintingrecords;
numbervar cnt;
cnt := 0;

//{@cnt} to be placed in the page footer:
whileprintingrecords;
numbervar cnt;
cnt := cnt + 1;

In the section expert, conditionally suppress the group header and details sections by entering a formula in the x+2 area:

whileprintingrecords;
numbervar cnt;
cnt > 1

-LB

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!

Resources

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