Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total page count for a report
Message
From
12/04/2002 17:18:29
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00644545
Message ID:
00644556
Views:
8
Patrick,
You have to run the report twice. Try something like this:
PRIVATE lnTotalPages
lnTotalPages = 0
lcTemp = ADDBS(SYS(2023)) + SYS(3) + ".TMP"
*-- calculate total number of pages
REPORT FORM < Report > TO FILE (lcTemp) NOCONSOLE

*-- use the following expression in your report:
"Page : " + ALLTRIM(STR(_PAGENO)) + " / " + ALLTRIM(STR(lnTotalPages))

*-- print the report
REPORT FORM < Report > TO PRINTER...

*-- delete temp file
IF FILE(lcFichierTemp)
  DELETE FILE (lcTemp)
ENDIF
HTH
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform