Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want check printer status before sending a job for my printer .detect error out of paper or low paper and etc.
thanks.
Posted
Comments
KarthikPatil 11-Jun-14 8:04am    
Hi there, I haven't been able to get a concrete solution for this requirement (getting the printer status - ON or OFF). Tried few codes but they fail. Any help from anybody please?

Thank you.

Hope this[^] will help.
 
Share this answer
 
This may help: MSDN - HOW TO: Determine Printer Status and Print Job Status from Visual Basic[^]

It's VB rather than C# but the principles will still hold.

Be aware that this may not work for more modern printers: Since they are present only on the network (wired or wireless) you may not be able to get the status generically.
 
Share this answer
 
You can do it either using PrinterSettings class or through WMI (Win32_Printer). Take a look at both the choose what fits your need the best.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900