Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer name?
Message
 
À
10/06/1997 13:04:51
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00035839
Message ID:
00035859
Vues:
33
>How can I get the name of the currently selected Windows printer? (VFP 5.0) SYS(1037) lets me change it, APRINTERS() puts the names of ALL the printers into an array and SET("PRINT",2) gives me the default printer name, but none of them do what I want.
>
>Thanks
>Elyse

Elyse,

I'm not sure of exactly what the problem is here. I assume that you're using SYS(1037) to make certain changes in the page settings, and you need to find out what they are. Look at the PRTINFO() function. You also might consider using the Common Dialogs ActiveX control. It sounds like part of the problem is that the SYS() function doesn't return a value, and GETPRINTER() doesn't do what you need. If this is the case, then the ActiveX control may be exactly what you need.

HTH,

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform