473,379 Members | 1,216 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Printer Monitor - take 2

Hi al

Please can someone point me in a right direction/tell me how to go about building an appliation that can monitor the printer queue on a windows platform(2000,XP,NT and 2003). What are the steps I need to follow in order to monitor the queues and store the info eg have a counter to count the number of pages printed by a specific username. I have a a brief look on the web and I have had no problem finding limited VB.NET stuff, but I want C# examples, and I would like to work with the windows API's, instead of downloading a component, because then most likely I will have to buy the component... So I was wondering does anyone here know how to do this, or know of any C# resources that explain this concept well

I am not an exteme newbie to c# but I am still learning and I would like to make this my "learning" project, so any help/suggestions on this topic will be immensly appreciated

Thanks in advanc
Kevi

Nov 16 '05 #1
4 2828
Take a look at the System.Management namespace classes, these are simple
wrapper arround WMI, and WMI contains a number of CIM classes to manage
printers and print queues.
Search MSDN for win32_printer.

Willy.
"Kevin" <an*******@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
Hi all

Please can someone point me in a right direction/tell me how to go about
building an appliation that can monitor the printer queue on a windows
platform(2000,XP,NT and 2003). What are the steps I need to follow in
order to monitor the queues and store the info eg have a counter to count
the number of pages printed by a specific username. I have a a brief look
on the web and I have had no problem finding limited VB.NET stuff, but I
want C# examples, and I would like to work with the windows API's, instead
of downloading a component, because then most likely I will have to buy
the component... So I was wondering does anyone here know how to do this,
or know of any C# resources that explain this concept well.

I am not an exteme newbie to c# but I am still learning and I would like
to make this my "learning" project, so any help/suggestions on this topic
will be immensly appreciated.

Thanks in advance
Kevin

Nov 16 '05 #2
Thanks Willy

Will check it ou

Kevin
Nov 16 '05 #3
Take a look at the System.Management namespace classes, these are simple
wrapper arround WMI, and WMI contains a number of CIM classes to manage
printers and print queues.
Search MSDN for win32_printer.

Willy.
"Kevin" <an*******@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
Hi all

Please can someone point me in a right direction/tell me how to go about
building an appliation that can monitor the printer queue on a windows
platform(2000,XP,NT and 2003). What are the steps I need to follow in
order to monitor the queues and store the info eg have a counter to count
the number of pages printed by a specific username. I have a a brief look
on the web and I have had no problem finding limited VB.NET stuff, but I
want C# examples, and I would like to work with the windows API's, instead
of downloading a component, because then most likely I will have to buy
the component... So I was wondering does anyone here know how to do this,
or know of any C# resources that explain this concept well.

I am not an exteme newbie to c# but I am still learning and I would like
to make this my "learning" project, so any help/suggestions on this topic
will be immensly appreciated.

Thanks in advance
Kevin

Nov 16 '05 #4
Thanks Willy

Will check it ou

Kevin
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Red Dragon | last post by:
Can someone kindly advice me how to send the print result to the printer instead of to the monitor in a C program? printf is the code to send to monitor. What is the code to send to printer?...
0
by: Kevin | last post by:
Hi al Please can someone point me in a right direction/tell me how to go about building an appliation that can monitor the printer queue on a windows platform(2000,XP,NT and 2003). What are the...
3
by: Sarah | last post by:
I would like my vb.net software running on an independent system be able to read the data going from a proprietary system to a dot-matrix printer. Few questions - are there any commercially...
0
by: prithvis.mohanty | last post by:
Hi all, I need to monitor printer spool. What I want to do is. When ever user try to print something from any application , the print job should be paused in the spool and it should popup a...
0
by: prithvis.mohanty | last post by:
Hi all, I need to monitor printer spool. What I want to do is. When ever user try to print something from any application , the print job should be paused in the spool and it should popup a...
3
by: Alex | last post by:
Hi everyone, We're trying to write a script that will monitor 6 email addresses and if an email arrives it will print to a specific network printer based on the email address. So if the address...
3
by: george | last post by:
Hi group, I am new to this group and since I didnīt find anything on Internet related to my problem I wanted to know if anyone know or may help me. What I have to do is: - Monitor a Network...
2
by: =?Utf-8?B?Qm9vazIwNDc=?= | last post by:
I am stumped. I lost my printer about a week ago and cannot reinstall it. When I try it tells me that the specified print monitor cannot be found. I have a Dell computer with Windows XP and a...
2
by: lyra via DotNetMonster.com | last post by:
hello! is anyone here familiar with Printer Monitor Component? im using microsoft .NET framework version 3.5 but i cant find that component. can anyone help me with this? i really need it... tnx! ...
1
by: Steve | last post by:
Hi All I am using vb.net 2005 in a windows forms application I send data to the selected windows printer using a PrintDocument object Is there any way to detect if the Printer is not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.