Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Default Printer
Message
 
À
27/05/2002 21:44:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00661824
Message ID:
00661916
Vues:
15
>>Hi, how can I set the Default Windows Printer (SET("Printer", 2) from within VFP?
>>
>>Regards,
>
>To let the user select a printer: GETPRINTER(). Save the result to a variable. See also: APRINTERS() (loads an array with printer names).
>
>To select this printer: SET PRINTER TO NAME (variable).
>
>HTH, Hilmar.

SET PRINTER TO NAME only changes VFP default printer. I need to change Windows Default Printer.

Try this:
? SET("PRINTER", 2)
? SET("PRINTER", 3)
SET PRINTER TO NAME "Lexmark Z42 Series ColorFine"
? SET("PRINTER", 2)
? SET("PRINTER", 3)
Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform