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

Number of Pages in Report

Status
Not open for further replies.

Sean466

Programmer
Mar 27, 2003
12
CA
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
 
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
&quot;Page <TABLASTPAGE&quot;

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


Thanks,
Sean
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top