Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox problem Pin
ScottM111-Nov-08 22:17
ScottM111-Nov-08 22:17 
GeneralRe: RichTextBox problem Pin
Pedram Behroozi11-Nov-08 23:29
Pedram Behroozi11-Nov-08 23:29 
GeneralRe: RichTextBox problem Pin
ScottM112-Nov-08 0:42
ScottM112-Nov-08 0:42 
QuestionAppending string to third last line in a text file Pin
sumit703411-Nov-08 18:51
sumit703411-Nov-08 18:51 
AnswerRe: Appending string to third last line in a text file Pin
J a a n s11-Nov-08 19:53
professionalJ a a n s11-Nov-08 19:53 
QuestionHow to detect printer status using C#. [modified] Pin
raja baireddy11-Nov-08 18:42
raja baireddy11-Nov-08 18:42 
AnswerRe: How to detect printer status using C#. Pin
Simon P Stevens11-Nov-08 23:45
Simon P Stevens11-Nov-08 23:45 
GeneralRe: How to detect printer status using C#. Pin
raja baireddy12-Nov-08 2:09
raja baireddy12-Nov-08 2:09 
Hi Simon,

By using that WMI code creator, i creted that code like this.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_Printer where name='HP Color LaserJet 1600'",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_Printer instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Status: " & objItem.Status
Next


It is not working properly.It is showing the status as "Unknown" or "Ok".

But i want the code for displaying the status "no paper", "low paper" etc.


Regards,
Sekhar Reddy
GeneralRe: How to detect printer status using C#. Pin
raja baireddy12-Nov-08 2:16
raja baireddy12-Nov-08 2:16 
GeneralRe: How to detect printer status using C#. Pin
Simon P Stevens12-Nov-08 2:50
Simon P Stevens12-Nov-08 2:50 
QuestionSine wave Pin
vinay_K11-Nov-08 18:07
vinay_K11-Nov-08 18:07 
QuestionDynamically creating calender Pin
aurosikhadas11-Nov-08 17:50
aurosikhadas11-Nov-08 17:50 
AnswerRe: Dynamically creating calender Pin
Brij11-Nov-08 18:26
mentorBrij11-Nov-08 18:26 
AnswerRe: Dynamically creating calender Pin
dan!sh 11-Nov-08 21:45
professional dan!sh 11-Nov-08 21:45 
QuestionPass Table Name Build Your Form ? Pin
Ahmed R El Bohoty11-Nov-08 17:38
Ahmed R El Bohoty11-Nov-08 17:38 
QuestionDispose or not? Pin
cocoonwls11-Nov-08 16:22
cocoonwls11-Nov-08 16:22 
AnswerRe: Dispose or not? Pin
Richard Blythe11-Nov-08 17:24
Richard Blythe11-Nov-08 17:24 
AnswerRe: Dispose or not? Pin
N a v a n e e t h11-Nov-08 17:29
N a v a n e e t h11-Nov-08 17:29 
AnswerRe: Dispose or not? Pin
Guffa11-Nov-08 23:32
Guffa11-Nov-08 23:32 
AnswerRe: Dispose or not? Pin
Scott Dorman12-Nov-08 4:21
professionalScott Dorman12-Nov-08 4:21 
AnswerRe: Dispose or not? Pin
cocoonwls17-Nov-08 17:46
cocoonwls17-Nov-08 17:46 
QuestionGenerate C# Symbols from IDE Pin
Ken Mazaika11-Nov-08 16:21
Ken Mazaika11-Nov-08 16:21 
AnswerRe: Generate C# Symbols from IDE Pin
Simon P Stevens11-Nov-08 23:32
Simon P Stevens11-Nov-08 23:32 
QuestionDatabase search engine code? Pin
Richard Blythe11-Nov-08 16:01
Richard Blythe11-Nov-08 16:01 
AnswerRe: Database search engine code? Pin
Ashfield11-Nov-08 20:59
Ashfield11-Nov-08 20:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.