473,397 Members | 2,028 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,397 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 2832
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.