Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Default Printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Change Default Printer
Divers
Thread ID:
00704393
Message ID:
00704393
Vues:
56
Can anyone tell me how I can change the default printer selection in VFP using Windows API commands? I'm using a 3rd party graphing package (Graphics Server 5.8), and when printing a graph the default printer is always used. I've tried the FoxPro command SET PRINTER TO NAME GETPRINTER( ), but this doesn't seem to send the user-selected printer info when outputing with this graphing package.

So I believe the solution is to programatically change the default to a temporary user selection (using GETPRINTER()) and then resetting back when the printing is completed. I just don't know how to do is. Any suggestions with sample code are welcome.

TIA
- Dave
Dave
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform