>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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer