×
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!
  • Students Click Here

*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

Jobs

Number of Pages in Report

Number of Pages in Report

Number of Pages in Report

(OP)
Is there a WF variable that stores the total number of pages in a report? TABPAGENO provides the current page number, but I would like to display something like 'Page x of y' where y is the number of pages in the report.

Thanks,
Sean

RE: Number of Pages in Report

Use TABLASTPAGE.

RE: Number of Pages in Report

(OP)
When I try TABLASTPAGE, I get the error
(FOC406) THE FIELDNAME IS NOT RECOGNIZED: TABLASTPAGE

Here is a snippit of how I am using it...
FOOTING
"Page <TABLASTPAGE"

I am using WF version 4.3.6. Has TABLASTPAGE been added in a version more recent than that one?


Thanks,
Sean

RE: Number of Pages in Report

I don't think that it wasn't added until the 5.x release.

RE: Number of Pages in Report

(OP)
OK, thanks gizzy!

RE: Number of Pages in Report

TABLE FILE CAR
PRINT TYPE
   BY COUNTRY
ON COUNTRY PAGE-BREAK
ON TABLE HOLD
END

-RUN

DEFINE FILE CAR ADD
TPAGE/I6 = &RECORDS;
END

SET PAGE=OFF

TABLE FILE CAR
HEADING
"<TABPAGENO OF <TPAGE PAGES"
PRINT TYPE
      TPAGE
   BY COUNTRY
ON COUNTRY PAGE-BREAK
END

RE: Number of Pages in Report

I goofed...try this (or something like it) instead.

TABLE FILE CAR
SUM   TYPE
   BY COUNTRY
ON COUNTRY PAGE-BREAK
ON TABLE HOLD
END

-RUN

DEFINE FILE CAR ADD
TPAGE/I6 = &LINES;
END

SET PAGE=OFF

TABLE FILE CAR
HEADING
"<TABPAGENO OF <TPAGE PAGES"
PRINT TYPE
   BY COUNTRY
ON COUNTRY PAGE-BREAK
END

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