Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many pages?
Message
From
25/11/1999 07:36:01
 
 
To
25/11/1999 04:14:36
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00294900
Message ID:
00295498
Views:
37
>>>How to know how many pages the report needs?
>>>Thanx
>>
>>You need to run the report twice, the first time to a file.
>>
>>REPORT FORM MyRpt TO FILE Dummy.tmp NOCONSOLE
>>lnMaxPages = _PAGENO && lnMaxPages has the total number of pages
>>REPOR FORM MyRpt TO PRINTER
>
>Hi Craig,
>thank you for the reply. Unfortunately, not all the printers can do
>this kind of report (TO FILE). Is there a second way?

What printer type would prevent you from directing the printer output stream from VFP's REPORT command to a file rather than a printer port? I've not seen this as a problem; in fact, the Windows spooler is, in a way, doing this for you implicitly, catching the printer output from the application and holding onto it until the printer is ready for it.

>I want to put a label in the bottom of the page, but when my
>edit box in the detail takes two pages instead of one, I find the label in both of pages

You might try adding the label to the report summary band, or adding a conditional print on the page footer to only print when at EOF().
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform