>>>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?
>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
Going to file has nothing to do with the printer. It is controlled in VFP.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer