Kbase P19591: SYSTEM DIALOG PRINTER SETUP always picks the default printer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/20/2003 |
|
Status: Unverified
FACT(s) (Environment):
Windows NT 4.0
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
SYSTEM-DIALOG PRINTER-SETUP always picks the default printer not allowing to select a printer of choice.
FIX:
To select a printer of choice, use the GET-PRINTERS( ) method of the SESSION system handle to store a comma separated list of available printers. Store the names of the available printers in variables and use the variable to select the correct printer.
Example Code Snippet:
DEF VAR vprinter AS CHARACTER.
vprinter = SESSION:GET-PRINTERS( ).
SESSION:PRINTER-NAME = vprinter.
/* sets the PRINTER-NAME attribute to the value of vprinter */
SYSTEM-DIALOG PRINTER-SETUP.