Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the number of copies at runtime
Message
De
17/12/2004 09:37:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00969991
Message ID:
00970027
Vues:
17
Thanks Aashish ,
What i was trying to rememmer was the system variable _Pecopies but what i want to avoid was the reprocessing of the report maybe setting something directly on the printer. But Maybe i'm making things more difficult than they really are as always :-)

>Hi Alessio,
>
>
>FOR i = 1 TO thisform.NumberOfCopies
>	PRINTJOB
>		IF ! THISFORM.LABEL
>			REPO FORM (THISFORM.reportfile) TO PRINT PROMPT NOCO
>		ELSE
>			LABEL FORM (THISFORM.reportfile) TO PRINT PROMPT NOCO
>		ENDIF
>	ENDPRINTJOB
>NEXT
>
>
>
>Or
>Looping in PRINTJOB-EndPrintjob to print multi copy of the report.
>The value of the system variable _PCOPIES determines the number of copies. When the number of copies printed equals the value of _PCOPIES, Visual FoxPro exits the loop. Program control then begins with the command immediately following ENDPRINTJOB.
>
>
>_PCOPIES=3
>PRINTJOB
>	IF ! THISFORM.LABEL
>		REPO FORM (THISFORM.reportfile) TO PRINT PROMPT NOCO
>	ELSE
>		LABEL FORM (THISFORM.reportfile) TO PRINT PROMPT NOCO
>	ENDIF
>ENDPRINTJOB
>
>
>
>
>>I don't remember what to do to set the number of copies of a report I want to print.
>>Thank you
>>Alessio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform