Solved

Getting printer status - USB, network, etc...

Posted on 2003-11-20
1
430 Views
Last Modified: 2010-04-05
I can't seem to find a reliable way to get the status of a printer to know if it out of paper, powered off, etc...

I am looking for a solution that will work with USB, Network, paral. printers
0
Comment
Question by:moonrise
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
Robn earned 250 total points
ID: 9790839
I haven't tried this but Delphi has a unit called WinSpool that has a number of implimented API's that can be called to retrieve printer information. Take a look at EnumPrinters. This method looks to have several types of records that can be passed in. The record TPrinterInfo2 has a Status member that you should be able to bitwise to determine if the PRINTER_STATUS_PAPER_OUT flag is set. You can look in the Printers unit to see how these API's are called.

Hope this helps,
Rob
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question