>>Is there a variable available that calculates the total number of pages in a report before page 1 prints?
>>
>>IOW, I'd like to be able to print something like Page 1 of 12,
>>but currently have no way of knowing how many pages will print. I really can't rely on calculating the number of records in the report cursor, since it contains memo fields that expand and shrink to encompass their data.
>>
>
>You need to make two passes through the report - the first prints to a file without updating the console, catch the value of _TALLY after the first run, and then use that to prodcue your output on the second run.
The method I use is to print the report to nothing and then get the system variable _pageno which will be the last page of the report and add it to my data as pagetotal. This way it's not dependent on the amount of records.
Regards,
E.R.
Regards,
E.R. Gilmore