It's known issue. To get correct page count you've to do the first run either to a file or to a window activated with NOSHOW.
>
>When reporting the same set of data from a
>table trying to obtain the total page count
>of the report, I have the following 2
>"REPORT FORM" commands in my app and I
>found that the _pageno generated by command
># 1 is correct while #2 isn't (count is 1 less).
>Is there something about these two command that
>I don't know about, or is this a vfp fault?
>
>
>1. REPORT FORM Customer PREVIEW WINDOW PreviewWin
>
>2. REPORT FORM V_order NOCONSOLE
--sb--