Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing printers
Message
De
28/07/1998 01:41:58
 
 
À
27/07/1998 11:23:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00121642
Message ID:
00121879
Vues:
12
>Can anyone tell me how to change windows printers VIA VFP?
>
>I want to print a report to the default network printer then change to a local label printer and then change back.
>
>Thanks..

Hi Jerry

Jim Booth send me this code yesterday, I think it can help you to.

LOCAL lcOldPrinter, lcNewPrinter
lcOldPrinter = SET("PRINTER",2) && Save the current printer name
lcNewPrinter = GetPrinter() && Get the printer the user wants
SET PRINTER TO NAME (lcNewPrinter) && Set the printer to the one selected
REPORT FORM Whatever TO PRINT NOCONSOLE && Print the report
SET PRINTER TO NAME (lcOldPrinter) && Restore the original printer
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform