Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PRINTER TO
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00403179
Message ID:
00403183
Views:
14
>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))
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform