Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the number of copies at runtime
Message
 
To
17/12/2004 06:50:07
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00969991
Message ID:
00970006
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform