Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Report
Message
De
01/03/2006 08:56:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
01100074
Message ID:
01100359
Vues:
18
>>>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.

I agree that using name expression works much better, but way you put it in your reply to Hilmar, it sounded (I understood at least) that it would work with or without it.
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform