>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
As Tore wrote, _PAGETOTAL is 0 initially. So you say:
... Range 1, 0, what must fail.
If you have run a report infront of this call, _PAGETOTAL will have some value different of 0, and it will work. That's probably the reason it worked in development environment.
If you need to determine the number of pages to print for this REPORT FORM by a previous report, use an IF structure to avoid calling with empty _PAGETOTAL.
See also
HELP _pagetotalLutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]