>Hello everyone.
>
>I'm having problems with the SET PRINTER TO command. The error I'm getting could be caused by a faulty network connection, but i wanted to make sure my code was right. For the app I'm working on, I want to read the name of a printer from a table and use it to set the printer. I'm testing it by using the windows name of my printer, which is HP LaserJet IIID. The command looks like this:
>
>SET PRINTER TO ALLTRIM(systable.defprn)
>
>systabel.defprn being equal to "HP LaserJet IIID ". The error I'm getting is "Error loading driver." can anyone tell me why?
>I'd really appreciate it. Thank you very much.
That should be SET PRINTER TO NAME (ALLTRIM(systable.defprn))