>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
AFAIK _PAGETOTAL is calculated during the run of a report. So if you haven't run any report yet, it will be 0, which will give the error you see. In your case I would simply ignore that value. IOW
Report Form TesetReport.frx to Printer Prompt Preview Range 1