They (customer) don't want to
have to select a printer. They want the program to make it automatic based on selection in another field.
>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham