Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the number of copies at runtime
Message
 
À
17/12/2004 06:50:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00969991
Message ID:
00970006
Vues:
23
This message has been marked as a message which has helped to the initial question of the thread.
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
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform