>How I get the total pages from the report.????
Run the report twice, the first time sending the output to a file, grab the _PAGENO value at the end of the report, and run the report again, this time to the printer. Craig Berntson answered this one already today, in this thread. The answer hasn't changed in the last few minutes.