Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Pagetotal error
Message
From
26/07/2023 04:24:39
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
24/07/2023 05:48:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01686828
Message ID:
01686840
Views:
61
>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 _pagetotal


Lutz
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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform