Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set printer to name to test if exist
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01371438
Message ID:
01371477
Views:
11
>>Thank you, Tore. I was not sure if Aprinter() will have all printers, including network printers.
>>
>
>
>Dmitry,
>
>[Update] Removed after proof reading
>
>Even better, to complicate things a little bit, if you SET PRINTER TO a valid printer but not installed in your computer (so APRINTERS will not have it listed) will work and you will be able to print, at least that is what I just tested
>
>
>Anetresources(laPrinters, '\\MyPrinterServer', 2)
>
>set printer to (SomePrinterIDoNotHaveInstalled)
>list memory like laPrinters to printer
>set printer to
>
>* voila, the print went to the printer I selected but that is not installed.
>
Hugo,

Thank you very much.
"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