Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another approach of printer online
Message
 
To
30/11/2009 17:16:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01436991
Message ID:
01437001
Views:
72
Yes and I wasn't surprised that they stored this in WMI

>Thanks Einar!
>This is WMI, ins't it?
>
>>>Hi.
>>>I know that I can't check from VisualFoxPro if the printer is ready.
>>>I was thinking if there is a way to get the printer status
>>>from Windows as the "Printer and Fax" manager do.
>>>When you open "Printer and fax" from start menu
>>>you can see that if a printer is OFF the status shows
>>>"offline" (if you have set icons view to "Tiles").
>>>If you turn the printer ON the status shows "Ready".
>>>Somehow "Printer and fax" manager gets the printer status
>>>from somewhere.
>>
>>This code is C# but the principe should work in VFP also.
>>http://www.codeproject.com/KB/printing/printeroffline.aspx
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform