Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer to name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00408786
Message ID:
00408835
Vues:
15
>I am using the set printer to name command.
>
>set printer to name &cPrinterName
>
>I get the error "error accessing printer spooler".
>
>I only get this error if I have spaces in the printer name. If I rename the printer in my printer settings folder and take out any spaces I no longer get the error, and everything prints fine.
>
>Any Ideas?

Use name resolution rather than macro-expansion:

set printer to name (cPrinterName)

>
>Thanks
>
>Pat Murphy
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform