473,503 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2838
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
1469
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
319
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
1564
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
6122
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
1615
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
2488
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
3469
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
1796
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
2501
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
4189
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...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.