Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer to Name
Message
 
À
11/02/2004 10:32:37
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00876261
Message ID:
00876263
Vues:
8
This message has been marked as the solution to the initial question of the thread.
>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?

Try

set printer to name (lcPrinter)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform