Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer Programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000
Database:
Visual FoxPro
Divers
Thread ID:
01055011
Message ID:
01057811
Vues:
52
>Hello Everyone,
>
>Is there a way to set the printer for a report programmatically? I have an application that needs to send the sales receipt to the receipt printer, the price tags to a thermal printer and the regular reports to a regular printer.
>
>Many thanks in advance,
>Bianca

Look at the series of articles that the late Ed Rauh and I did on the Windows Script Host a few years back. They're available on-line at www.vfug.org. What would be of interest is the fourth article on the WScript.Network object. It has a SetDefaultPrinter() method that'll allow you to do this.
George

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

Click here to load this message in the networking platform