Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Report
Message
 
 
To
01/03/2006 04:31:21
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
01100074
Message ID:
01100327
Views:
16
>>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform