I am trying to write a program that can detect when the attached printer (either local or on the network) starts printing a job and when it stops printing that job. The program will then time how long it takes to complete printing the job in question. The jobs can be from any application (eg a MS Word doc that is being printed).
How can I detect and monitor the status of a print job that has been spooled by an external program (eg MS Word) ?
I would be grateful for any help offered regarding this.
Thanks in advance