Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer to name weird error
Message
De
23/11/2006 11:04:59
 
 
À
23/11/2006 10:35:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01172057
Message ID:
01172081
Vues:
29
>Macro expansion stops at the first period (.)! Use name expression in stead.
>
>lcPrinter=alltrim(Imprimantes.imprim)
>Set printer to name (lcPrinter)
>
>>alltrim(Imprimantes.imprim) and oApp.cNomImprim contain the same string
>>
>>
>>lcPrinter = "set printer to name alltrim(Imprimantes.imprim)"
>>&lcPrinter
>>
>>No problem after execution
>>
>>
>>
>>
>>lcPrinter = "set printer to name oApp.cNomImprim"
>>&lcPrinter
>>
>>After that execution I receive Error accessing printer spooler (Error 1957)
>>
>>What's wrong here?

Thanks Tore.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform