Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total pages in a report
Message
 
To
19/09/1998 13:04:01
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00138656
Message ID:
00138696
Views:
17
Hi Alessio,

The following code determines the number of pages in the report and sends the report to the printer:

Private pnPages
Local lcFile
pnPages = 0
lcFile = Sys(3)+".Tmp"
Report Form myReport to File (m.lcFile) Noconsole
Erase (m.lcFile)
pnPages = _PAGENO
Report Form myReport to Printer Noconsole

Within the report use pnPages to refer to the total. In the October issue of FoxPro Advisor there's an article that covers this topic more in depth.

Christof

>I want to know how many pages are in a report to write at the top of at the bottom of each page ' page (_pageno) of (number of pages)
>How can I do ?
>Thanks
>Alessio
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform