Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Printer to Name
Message
From
11/02/2004 10:35:30
 
 
To
11/02/2004 10:32:37
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00876261
Message ID:
00876264
Views:
8
Hi Robert,

lcPrinter = getprinter()
set printer to name (lcPrinter)

>If I use "set printer to name getprinter()" it works.
>If I use "set printer to name 'HP LASERJET IIIP'" it works.
>
>But, if I use:
>lcPrinter = getprinter()
>set printer to name lcPrinter
>it doesn't work. Get error 1957 Error Accessing Printer Driver.
>
>Is there no way to use a variable with the printer name for this command?
Previous
Reply
Map
View

Click here to load this message in the networking platform