>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())