Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer Monitor

Status
Not open for further replies.

hlima

Programmer
Joined
May 29, 2004
Messages
1
Location
PT
Hi,

i'm developing an application to control print jobs in a shared windows 2000 printer, it's purpose is to pause all print jobs and only allow them to resume with my application gui.
I also need to get the total number of pages and copies of each job.

I already made it work using the windows api functions (EnumJobs, SetJob) and a worker thread to pause all new jobs and resume the ones permited to print.

The problem is when someone prints from MS Word using more than 1 copy, it only returns 1 copy in the dmCopies member of the DEVMODE struct of JOB_INFO_2.

Does someone knows how to solve this problem and get the correct number of pages from the Word document?

Please, help me!!!!!!!
 
There probably *is* only 1 copy, as Word usually just generates the copies one after each other, instead of sending the "i need 5 copies" command to the printer ;-)

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top