473,320 Members | 1,926 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,320 software developers and data experts.

Get information from printer

Hi,

How I can get information from printer about count of copy pages, who's
print pages etc. I want monitoring printers and save that information to
file log. Maybe printer has any events to do that ?
Thank's for all.

Boniek
Nov 15 '05 #1
1 4247
Hi,

This is possible with API calls and P/Invoke.
With OpenPrinter, GetPrinter, SetPrinter and ClosePrinter you can get the
status and the settings from a printer.
With EnumPrinter you can enum all printers available on a machine, at a
server or in a domain.

For PrintJobs there is EnumPrintJobs the right API call.

For events you should use FindFirstPrinterNotification,
FindNextPrinterNotification and FindClosePrinterNotification.

I hope this helps.

Cheers,
Ralf

"Mortel" <mo****@poczta.onet.pl> schrieb im Newsbeitrag
news:bt**********@nemesis.news.tpi.pl...
Hi,

How I can get information from printer about count of copy pages, who's
print pages etc. I want monitoring printers and save that information to
file log. Maybe printer has any events to do that ?
Thank's for all.

Boniek

Nov 15 '05 #2

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

Similar topics

2
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to...
0
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
1
by: David Trivette | last post by:
I was wondering if anyone could help me with a MS Access 2002 issue I'm having. Problem - I created a db in Access 97 which worked just fine for several years. In the db the user can generate...
4
by: laurissa96 | last post by:
I have a printer that is hookup using LPT1 and is shared. I can print the report when changing to a network printer. I have deleted, reinstalled, changed drivers, left that printer installed and...
1
by: Mortel | last post by:
Hi, How I can get information from printer about count of copy pages, who's print pages etc. I want monitoring printers and save that information to file log. Maybe printer has any events to do...
3
by: Montse | last post by:
Hi, I have a problem with the object Printer. I need to read a bit information from the printer (no the printer's name, but a bit sending by the printer's sensor), but i don´t find the method...
3
by: Morten Fagermoen | last post by:
Hi! I use the code below to find the printers connected to the local computer. How can I get the "Location" and "Description" information from the printers I have connected? Public Sub...
1
shek124
by: shek124 | last post by:
am facing a problem related to get the information from printer in Asp.NET. I want to get status of Printer like Printer Name, Printer Driver Name, Printer Port name etc. and also Print Job status...
1
by: davidrrc | last post by:
how get printer innformation from all printers in the pc, and all works send to printers? how i can access the printer deamon? by example printer name drivers
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.