Solved

printers log data

Posted on 2013-01-12
3
355 Views
Last Modified: 2013-09-03
Hello

Please, Can some help me with an example for delphi 2007, showing the default printer's log information. I need information about how many copies have been printed.

Sincerely,
0
Comment
Question by:dk_dirtyl
3 Comments
 
LVL 25

Accepted Solution

by:
Sinisa Vuk earned 200 total points
Comment Utility
Do you need this for current print job or to get global printer counter?

For current print job follow this links and look for PagesPrinted in  JOB_INFOx structure:

http://www.delphigroups.info/2/80/156805.html
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145022%28v=vs.85%29.aspx
http://www.delphimaster.net/view/7-98895
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20145937.html
http://tech.groups.yahoo.com/group/Delphindo/message/18763
http://www.experts-exchange.com/Programming/Languages/Q_21006619.html

To access printers internal counter you need to use esc/pcl commands. Some printer manufacturer bring sdk which can helps but solution does not cover all printers.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now