Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why _PCOPIEs Doesn't Work?
Message
De
22/06/2001 01:18:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00521288
Message ID:
00522277
Vues:
14
Hi, Nadaya,
I finally found a way out, below is the program part about that. I hope it could help other person who meet the same problem.
===========================================================================================================
LOCAL lnI,lcTMPFileName,lcRPTName,lnCopies
lnCopies=3 && The Copies ypu wanna print out
lcRPTName="Bill.FRX" &&The Report Name
*!*Initial The Tmp File with a Unique Name
lcTMPFileName=SubStr(Alltrim(Sys(2015)),5)+Right(SYS(3),3)++".PRN"
*!*Print the report redirecting to the Tmp file, if user choice the exit buttom in preview mode, the tmp file wouldn't be created
Report Form (lcRPTName) PreView Noconsole TO File (lcTMPFileName)
*!*IF Tmp file exsit means the user pressed the print buttom in preview mde, then the programm make n copies as you wish.
IF FILE(lcTMPFileName)
FOR lnI=1 TO lnCopies
Report Form (This.Parent.Reporter) Noconsole TO Printer
NEXT
DELETE FILE (lcTMPFileName)
ENDIF
===========================================================================================================
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform