Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with : Set Printer to Name
Message
From
05/10/2001 14:20:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Problem with : Set Printer to Name
Miscellaneous
Thread ID:
00564932
Message ID:
00564932
Views:
41
Hi,

I'm having problem using a variable with set printer to name.


This does not work:
lcPrinterNom = GETPRINTER()
SET PRINTER TO NAME lcPrinterNom

It gives me error 1957 : error accessing printer spooler

But this work:
SET PRINTER TO NAME GETPRINTER()

And this work also:
SET PRINTER TO NAME "\\GCI3\HP DeskJet 540"



I would like to use a variable in order to take specific action if the user click "cancel" to the GETPRINTER() prompt.


Thanks
Diane Robitaille eng.
Next
Reply
Map
View

Click here to load this message in the networking platform