Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Pagetotal error
Message
De
26/07/2023 04:24:39
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
24/07/2023 05:48:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01686828
Message ID:
01686840
Vues:
62
>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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform