Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the number of copies from a print job?

I need to get number of copies of a print job. I have its information in a JOB_INFO_1 record, but there is not any field for number of copies. How can I get this value?

like image 457
Mahmoud_Mehri Avatar asked Oct 25 '11 19:10

Mahmoud_Mehri


1 Answers

Instead of JOB_INFO_1, you will need to get a JOB_INFO_2 structure, which has a pointer to a DEVMODE structure, that in turn has a number of copies field. JOB_INFO_2 get be retrieved using GetJob, just as JOB_INFO_1.

like image 91
GolezTrol Avatar answered Nov 06 '22 22:11

GolezTrol