I am using windows print spooler notification functions, as FindFirstPrinterChangeNotification, FindNextPrinterChangeNotification to get JOB_NOTIFY_FIELD_TOTAL_PAGES, JOB_NOTIFY_FIELD_PAGES_PRINTED values. The total number of pages obtained, is not showing the correct value when I am printing multiple copies (>1) of the selected page, but the actual number of pages sent for printing. It is really troubling me since 3 days now :(
Taking an example, if I have a document of 10 pages and I give a print of more than 1 page of the document, (eg. Page 1, 4) asking for 4 copy each then the return value I obtain is:
JOB_NOTIFY_FIELD_PAGES_PRINTED = 8
JOB_NOTIFY_FIELD_TOTAL_PAGES = 2
But if I give print of a selected single page (or current page) and ask for 4 copies of it, then the return value I obtain is:
JOB_NOTIFY_FIELD_PAGES_PRINTED = 1
JOB_NOTIFY_FIELD_TOTAL_PAGES = 1
But, the printing does takes place in all the printers (Epson/ HP/ Canon) I have tried.
I do feel, that printer setting is having some influence over my result. Frankly, I don't know.
The printer setting are as follows:
Selected: Spool print documents so program finishes printing faster
Selected: Start printing after last page is spooled
Selected: Print spooled documents first
Selected: Enable advance printing features
It would be really kind of you to give your guiding suggestions.