Christoph Lindemann
2006-04-27 13:12:02 UTC
When printing a 13 page job in 2 copies, the TotalPages value is
inconsistent, depending on ?.
normally:
JOB_INFO_2.TotalPages = 26
JOB_INFO_2.pDevMode.dmCopies = 2
here TotalPages is the TOTAL number of pages
but sometimes:
JOB_INFO_2.TotalPages = 13
JOB_INFO_2.pDevMode.dmCopies = 2
Here TotalPages is only the number of pages pr. job. So the TOTAL would be
(TotalPages*dmCopies)
Until now I thought this is depending on the JOB_INFO_2.pDevMode.dmCollate
field:
if JOB_INFO_2.pDevMode.dmCollate == DMCOLLATE_TRUE then
TOTAL = JOB_INFO_2.TotalPages
else
TOTAL = JOB_INFO_2.TotalPages * JOB_INFO_2.pDevMode.dmCopies
But I have seen cases where JOB_INFO_2.pDevMode.dmCollate != DMCOLLATE_TRUE
but TOTAL = JOB_INFO_2.TotalPages
So the question is, can some one at Microsoft (or anyone else) shed some
light on how these fields depend on each other.
Might be this behaviour depends on something total different, like the used
driver, print processor, if the sun is shining ;)
inconsistent, depending on ?.
normally:
JOB_INFO_2.TotalPages = 26
JOB_INFO_2.pDevMode.dmCopies = 2
here TotalPages is the TOTAL number of pages
but sometimes:
JOB_INFO_2.TotalPages = 13
JOB_INFO_2.pDevMode.dmCopies = 2
Here TotalPages is only the number of pages pr. job. So the TOTAL would be
(TotalPages*dmCopies)
Until now I thought this is depending on the JOB_INFO_2.pDevMode.dmCollate
field:
if JOB_INFO_2.pDevMode.dmCollate == DMCOLLATE_TRUE then
TOTAL = JOB_INFO_2.TotalPages
else
TOTAL = JOB_INFO_2.TotalPages * JOB_INFO_2.pDevMode.dmCopies
But I have seen cases where JOB_INFO_2.pDevMode.dmCollate != DMCOLLATE_TRUE
but TOTAL = JOB_INFO_2.TotalPages
So the question is, can some one at Microsoft (or anyone else) shed some
light on how these fields depend on each other.
Might be this behaviour depends on something total different, like the used
driver, print processor, if the sun is shining ;)