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!!!!!!!
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!!!!!!!