Tech Support > Microsoft Windows > Development Resources > No chance to get the correct copies amount for a printjob ...
No chance to get the correct copies amount for a printjob ...
Posted by Hannes G?nser on October 29th, 2003


The following issue happens only under Microsoft Word (2000/XP) and as
far as i know only with laser-printers, tests with Excel, Notepad,
Wordpad, etc. results in an absolut correct information.

I have tried the following possibilities to obtain the copies:

[WaitForSingleObject with FindNextPrinterChangeNotification]

Results (1 Page, 3 Copies, Not Collated): Totalpages is 1 -> WRONG
Results (1 Page, 3 Copies, Collated): Totalpages is 1 -> WRONG
Results (2 Pages, 3 Copies, Not Collated): Totalpages are 2 -> WRONG
Results (2 Pages, 3 Copies, Collated): Totalpages are 6 -> OK
*Result-copies are always 1 when printed with Word

[EnumJobs or GetJob]

Results (1 Page, 3 Copies, Not Collated): Totalpages is 1 -> WRONG
Results (1 Page, 3 Copies, Collated): Totalpages is 1 -> WRONG
Results (2 Pages, 3 Copies, Not Collated): Totalpages are 2 -> WRONG
Results (2 Pages, 3 Copies, Collated): Totalpages are 2 -> WRONG
*Result-copies are always 1 when printed with Word

[Other tries]

- I tried the API ReadPrinter, but never worked.
- I tried to access the .shd-file in the spool-dir, but that file is
locked under WinXP.
- I tried to access the .spl-file in the spool-dir, this is working
(with many but not all printers), but not the best solution because
the spl-file may sometimes be huge.

So please heeelp me, i am trying to find a solution for month now -
the only help i found on the net was to write my own driver/print
monitor/print processor (but i have no exp with that and are
developing under Delphi).

Thanks in advance for any tipps/infos/links/commands.
But im afraid there is no solution for that problem (except a driver
of course).

Posted by Merrion on November 4th, 2003


genesisv@web.de (Hannes G?nser) wrote in message news:<64eba20d.0310290708.136b5afd@posting.google. com>...
This is a known issue with MS Word. For reasons best known to itself
it does not set the DEVMODE.pCopies - the only solution is to scan the
..spl file and since the format of that depends on the job language (or
may be EMF in Win2000 and beyond) this is an onorous task. We have a
project underway to do just this but it's a long way from completion.

Hope this helps,
Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com

Posted by Hannes G?nser on November 10th, 2003


It does not help but i am glad not to be the only one having that problem

Thanks

Duncan.Jones@bigfoot.com (Merrion) wrote in message news:<d57adffd.0311040329.4a7972a8@posting.google. com>...

Posted by SuperJeff on December 29th, 2004


Has anyone else experienced this with any other applications? Or is it
really specific only to Word 2000/XP?

Hannes G?nser wrote:


Similar Posts