In order to get correct numner of pages you've to print to file.
REPORT FORM myreports TO FILE FileName2 NOCONSOLE
>As always to get a report total number of pages, i define a public variable ztotpage, execute the command "report form 'myreports' noconsole " then store the _pageno value in ztotpage.
>It's always worked fine....till last day.
>It happens that for just a report the _pageno value is not the total number of pages it's less than it.
>To make it equal to the toal number of pages a have to preview the report and go manually to the last page, then when I exit the preview mode i have the right _pageno value. What is strange is that it happens just in one report.
>Thank you
>Alessio
--sb--