Hi,
IMHO, The bug not is related with _pagetotal.
_PAGETOTAL range is from 1 to 32767. And you cannot write another value.
MartinaJ
>Sometimes it works and sometimes it doesn't. It might be some global setting affect the _Pagetotal functionality.
>
>But definitely the error come from _pagetotal system variable. If I replace the _Pagetotal with a number, then it works.
>
>e.g.
>Report Form TesetReport.frx to Printer Prompt Preview Range 1, 10
>
>Hi,
>
>
> Some VFP or UDF function used in report has wrong parameter(s).
>
>MartinaJ
>
>>Hi All,
>>
>>I am using the following command in the VFP9:
>>Report Form TesetReport.frx to Printer Prompt Preview Range 1, _PAGETOTAL
>>
>>It return with error message:
>>Function argument value, type or count is invalid
>>
>>Thanks in advance if anyone can help