Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Report
Message
 
 
À
01/03/2006 04:31:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
01100074
Message ID:
01100327
Vues:
15
>>It should be SET PRINTER TO NAME and there's no reason to use macro substitution in this case.
>
>I think there is ;
>It is one or the other.
>
>
>
>set printer to name &lcPrinter
>
>* or
>
>set printer to name (lcPrinter)
>***Personally I always used this one.
>
>
>
>
>
>Doing just ;
>
>set printer to name lcPrinter
>
>results in 'Error accessing printer spooler'
>at least with VFP6/sp5.
>
>
>I did not try this with VFP9.

There's no reason to use macro substitution in this case because Name Expresiion works much better.
Using macro sunstitution in this case is not only unnecessary but plainly wrong because it'll cause an error in case there are spaces in the printer name.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform