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
***
TONY Nascimento
*****************
"Your mind is like a parachute. It only works if it is open" - Anthony J. D'Angelo
"The desire to know is natural to good men" - Leonardo da Vinci