Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print to printer IP
Message
 
 
To
21/01/2013 14:57:39
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01563495
Message ID:
01563525
Views:
58
>>Hi,
>>
>>How do you print to printer if you know printer IP? Say I have network printer IP as '128.2.12.212' . Can I store it into a variable and the use SET PRINTER TO? Example:
>>
>>cPrinterIp = "128.2.12.212"
>>SET PRINTER TO NAME (cPrinterIp)
>>
>>Will the above work?
>
>No. The printer defined on the local computer may have that IP address, but you still need to access it via its defined name.
>
>I just tested your code, on my system I get a VFP error "Error accessing printer spooler" ( error 1957 ).

Thank you. I was about to do the same type of test so you saved me the time. I appreciate it.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform