Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Dialog with Number of Copies
Message
 
 
À
17/05/2001 12:48:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00508337
Message ID:
00508428
Vues:
43
>>To do what you want, I had to do the following:
>>lcFile = sys(3)  && legal filename
>>lnCopies = ThisForm.spnCopies.Value && spinner value
>>select * from myreport.frx into table lcFile + ".frx"
>>repl expr with strtran(expr, 'COPIES=1', 'COPIES=' + str(lnCopies))
>>use
>>repo form (lcFile) to printer noconsole
>>erase lcFile + ".frx"
>>erase lcFile + ".frt"
>
>Mark,
>That's cool...I currently have a loop that sends the report to the printer the number of times the user has selected.
>Will that work for any printer? IOW, is windows in charge of sending multiple copies to the printer, or does the print driver simply pass the number to the printer itself (which must then have the internal capability of doing this)?
>
>Thanks,

That will work for any printer as long as COPIES=1 is in the Expr field in the first record of the report table. I always empty the contents of the Tag and Tag2 fields in the first record of the report table as well as the 3 lines in the EXPR field that start with DRIVER, DEVICE or OUTPUT. These will be the first 3 lines in that field if not already deleted.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform