Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set any printer as the current Windows printer?
Message
 
À
13/02/1999 04:04:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00187351
Message ID:
00187361
Vues:
21
>I would like to know how I can set any installed Windows Printer as the current printer for VFP and for Windows, I used Getprinter but did not work. Is very important, I am finishing an application and this one is the last thing to terminate it. Tia
>
>Luis Guerra

Luis,

Take the value returned from GetPrinter and use the SET PRINTER TO command, for example;

LOCAL lcPrinter
lcPrinter = GetPrinter()
IF NOT EMPTY( lcPrinter )
SET PRINTER TO "&lcPrinter"
ELSE
* The suer pressed escape in GetPrinter
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform