Link to home
Start Free TrialLog in
Avatar of gpequegn
gpequegn

asked on

Counting Printed Pages

I have an assignment handed me. A client in a law library charges people by the page when they print info from any application or the net. Right now they use the honor system but are wondering if something can't be created in VB to actually count the pages that are printed from a printer. The output would be sent to a text file along with the user name, time and number of pages. Getting the user name and time is easy enoguh but I haven't come across anything in the VB help files about counting printed pages.This little pogram would run in the background. I don't want anyone to show me how to do it but a starting point and some tips would sure come in handy.

Thanks in advance

George
Avatar of aikimark
aikimark
Flag of United States of America image

Since VB does a poor job of printing documents, I assume you are using some other application, such as Word to do the printing.  If so, Word objects include the number of pages.  Open the VB editor within Word and look at the online help contents to get to the Word Object help.  You might automate the Normal template to capture this.

The capturing of printed pages at a system level seems to require you to do one of the following:
1. write a wrapper for the printer device or print monitor with code to capture the ID of the pages/person/date/time requesting the print.
2. look for network monitor software that captures network printer metrics for your client.
3. look for WinAPIs that allow you to monitor windows messages.  Look for Printer messages.
4. require the users to supply information (ala Logon) every time they use the printer.

5. replace the print manager! Look for products like Print Manager Plus from Sunbelt Software.
ASKER CERTIFIED SOLUTION
Avatar of Matti
Matti
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CArnold
CArnold

Wow.
Great links there, Matti.  After reviewing your info, I think I'll reserve my suggestion. ;-)

Good Work,
CArnold
<listening..>
excelent link Matti!...
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to Matti
Please leave any comments here within the
next seven days.
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange