Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a form to different printers
Message
De
04/05/2006 09:13:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01118480
Message ID:
01119115
Vues:
22
>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.

I have not read all the details, but why don't you Set Printer to name (GetPrinter())
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform