How do I get the Printer Status from a Network Printer?

Hi,

Is there any way I can get the printer status, like paper jam or out of paper, from a Network Printer?

I'm working on a project to print from a Point of Sales into a A4 Network Printer, I'm planning to use the LPR native application but I can't get the paper jam or out of paper errors using that application.

Is possible to get those status from a Lexmark Network Printer?

Does exist any C/C++ Open Source library that allow me to get those status?

Thank you in advance
What about CUPS? [ http://www.cups.org ]
Topic archived. No new replies allowed.