Solved

How to check printer status in C#?

Posted on 2004-04-30
2
2,256 Views
Last Modified: 2008-01-09
I'm using C# for my codes.
I'd like to ask for some help guys!

How can i check printer status using C# codes.  i have a code but it will not work yet.  Though its printer status seen inside printers window changes (Out of paper, not connected, etc.) my code only returns one value only, and that is "3".

Can anyone give me sample codes for this?

Thanks a lot.
0
Comment
Question by:batang_igat
[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
  • 2
2 Comments
 
LVL 3

Expert Comment

by:JavaInTheMorning
ID: 10957352
0
 
LVL 3

Accepted Solution

by:
JavaInTheMorning earned 50 total points
ID: 10957359
This is a great article that would help you even more (check out section 4)
http://www.codeproject.com/csharp/csdoesshell2.asp
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where does legacy ASP.NET initialize language? 2 95
Need to sort columns in DataGridView 4 59
orderby list (from Json) 1 40
Visual C# Windows Project - Clone Form 4 35
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

740 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