>>>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().