Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Report
Message
From
01/03/2006 08:56:16
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
01100074
Message ID:
01100359
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.

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform