I am writing a program to administer printer usage, however, the number of pages printed that I get using VB6 always get messed up whenever a user sends a multipage or multicopy job.

I have done various search but cannot find a solution.

The only way seems to be by using PJL query. However, I have no idea how to start. The technical manual from HP also does not help much.

Can anyone provide a simple start off for a beginner?
i.e how to use VB6 to connect to the printer

Best Rgds and a happy new year!