This post is copied from another member :mohanavv ; with his prior permission.

Hi!

We have a network of about 55-60 computers (netware & NT) running XP and Win2000 workstations. We have about 5 network printers and copiers to which a computer can print. What I'd like to do is build, if possible, a simple VB program to intercept what they are printing (from any application) and capture certain information about the print jobs before it gets sent off to the specified printer.

For example, when a user selects print from the menu in MS Word, and after the Ok button is pressed on the printers dialog window, have my program then pop up asking the user to fill in specific information (who they want to charge for the print job...this is typically an internal billing code, etc.).

The program would have to capture the name/driver of the printer users are printing to, the document they printed, number of pages, number of copies, date/time, etc.

Is/are there Windows API's to help in my programming of this application? I've been, unsuccessfully, searching MSDN, web sites, etc. on how to intercept/detect a print job. Any help would be greatly appreciated!

Please Let me Know if this is not the correct forum to post this Thread.As this was posted in the VB forum but we got no Replies!

HP already provides pay per print service.
You can not code it , the information is vendor proprietary .

Thank You for your prompt reply. But , what we are lookin for is for our company use.We wanted to develope an Application for the comapny use which can be audited monthly by the Accounts department.For example: The amount of paper used etc. and estimating the costs' for these papers utilized.
Hope I am making some sense out of this....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.