473,659 Members | 2,872 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,X P,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 2854
Take a look at the System.Manageme nt 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*******@disc ussions.microso ft.com> wrote in message
news:14******** *************** ***********@mic rosoft.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,X P,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.Manageme nt 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*******@disc ussions.microso ft.com> wrote in message
news:14******** *************** ***********@mic rosoft.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,X P,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
1477
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? Thanks and regards, Khoon.
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 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...
3
1571
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 available or "hack" devices available that would allow me to tap into the data the proprietary system is sending to the dot matrix printer? How could I get my vb.net software to respond listen to and respond to this data stream? Are there any...
0
6130
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 dialog asking for a authorization code. If the authorization code is valid then the printer job will be send for printing . If the authorization code is not correct then the print job will be removed from the queue. The operating system is Windows...
0
1625
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 dialog asking for a authorization code. If the authorization code is valid then the printer job will be send for printing . If the authorization code is not correct then the print job will be removed from the queue. The operating system is Windows...
3
2497
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 is 'department1@domain.com' it will print to 'dept1ptr'. Each printer can be setup either on a network print server or printed to directly via IP address... they're all HP printers. Any suggestions on a route to go with this? I'm very...
3
3483
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 Printer - When a specified document is printed (perhaps it can be identified by the name), add a signature at the end of the document. This signature can be any type of digital image (gif, jpg, tiff, etc).
2
1807
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 Dell Photo Printer 720. Any help will be greatly appreciated.
2
2505
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! -- Message posted via http://www.dotnetmonster.com
1
4213
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 responding e.g turned off, out of paper etc, via code I want to display a warning if the printer needs attention rather than just
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
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 we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.