Hannes G?nser
2003-10-29 15:08:13 UTC
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).
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).