Solved

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

Posted on 2003-11-20
1
406 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
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now