Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a form to different printers
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01118480
Message ID:
01118486
Vues:
11
This message has been marked as the solution to the initial question of the thread.
Why you don't want to use APRINTERS() and let user select printer from the combobox?

>I need to add a routine to the application where a form will be printed to a printer based on the entry in a field of the form.
>
>My initial plan is to make an XML file where user can define Names of printers and the value in the field corresponding to the printer.
>
>Then the program will use the syntax
>
>set printer to name (cPrinter)
>
>to direct the form to the appropriate printer.
>
>My concern is that it would require the customer to enter the name of each printer exactly. And the printer name can be long. Also, I don't know if it is possible, but could the same printer be viewed under a different name from different work stations?
>
>So, I am thinking that maybe it can be done by defining IP of the printer. And, therefore, I am wondering, does every printer on a LAN have an IP that could be easily determined? Also, how would you direct a form to be printer to a printer by the IP?
>
>Any other suggestions to this task would be greatly appreciated.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform