Solved

printers log data

Posted on 2013-01-12
3
374 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 27

Accepted Solution

by:
Sinisa Vuk earned 200 total points
ID: 38771511
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

695 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