Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System Variable for Total No. of Pages?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00507933
Message ID:
00508445
Views:
25
>>>
>>=SYS(1037)
>>REPORT FORM MyReport to FILE TempRept.prn NOCONSOLE
>>TotalPages = _PageNo
>>DELETE FILE TempRept.prn
>>REPORT FORM MyReport TO PRINT NOCONSOLE
>>
>>
>>Otherwise, you may have an issue with the printable area being different between the default printer and the one chosen by the user. That could potentially mean that the "TO FILE" report would have a slightly different page count than the "TO PRINT" report because the number of lines that can fit on the page may be slightly different.
>>
>>Cathy
>
>Cathy,
>
>In regards to the page count being reliable, do you know whether it works to:
>SET PRINTER TO NAME (printerName)
>
>instead of:
>=SYS(1037)
>
>Thanks,


I don't see why it wouldn't work ... as long as you know what printer you are setting it to. I used SYS(1037) so I could prompt the user for the printer instead of hardcoding a specific printer.
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform