why can't I get dmCopies from JOB_INFO_2 when I print in MSWORD?

D

dikiili

Hello ALL:
I am bothering in getting dmCopies from JOB_INFO_2 when I print in MSWORD.

I am writing a print monitor, which monitors all the jobs that are printed
on a Windows 2000/XP system. This Print monitor is based on the Microsoft
Print Monitor and uses print notifications. I managed to get all the print
jobs from the complete domain and the corresponding attributes, like owner,
totalpages, jobID etc. however, the number of copies is a part of the
DevMode structure of a Print Job.
Whenever a job is printed from Notepad, WordPad, Adobe Acrobat for example,
the Copies element is filled correctly. So when a .txt file existing of 2
pages is printed, and the number of copies is set to 3, the PrintJob object
totalPages is set to 2 and the Copies element of the PrintJov DevMode object
is set to 3.
When Microsoft Word is used the Copies element is not filled correctly. It
seems that the default value of the PrintDlg is used. So when I print the
same (2-page) .txt file and set Copies to 3, the PrintJob object totalPages
is set to 2, but the Copies element is set to 1.
That is to say, I cannot get the correct infomation when printting in
MSWORD.
Anybody can help me?
And Even I hook the API "PrintDlg" when i print in MSWORD ,nothing happened.
That means:WORD PrintDialog DONOT use "PrintDlg".That's why?
 
D

danmian

hi dikiili, I have exactly the same problem here, also happends with
excel when you check the "interlaced" option down the number of
copies.
i'm still looking for a solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top