Consultor Eletrônico



Kbase P84901: How to specify Windows passthrough printing per print job ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   23/09/2008
Status: Verified

GOAL:

How to specify Windows passthrough printing per print job ?

GOAL:

How to set -Wa -Wpp per print job instead of per session ?

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
Windows

FIX:

The purpose of the -Wa -Wpp parameters is to bypass the Windows print spooler and send data directly to the printer.
This can be beneficial both for performance and for printing quality, especially when printing to dot matrix printers.

However, bypassing the print spooler will break pseudo-printers such as the Adobe PDF writer. Therefore, it may be required to use pass-through printing on a per-job basis.

Currently the only way to use passthrough-printing on a job by job basis is to have the actual printing take place in a second session:

- Write a generic printing routine that reads a filename and printername from the SESSION:PARAMETER attribute, reads from the file and writes to the printer.

- Modify existing reporting programs to write the output to a file, and then use OS-COMMAND to start a second session running the print routine. The command line used in OS-COMMAND would include the -param parameter to set the filename and printername, and would have -Wa -Wpp appended as required.