Kbase P109045: SESSION:PRINTER-NAME is ignored when using Properties button
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/11/2010 |
|
Status: Unverified
SYMPTOM(s):
The target printer specified in SESSION:PRINTER-NAME is ignored
Default window printer is used instead
This happens only if choosing the Properties button in the printer setup system dialog
The printer setup system dialog is invoked by 4GL using the SYSTEM-DIALOG PRINTER-SETUP statement
CAUSE:
Bug# OE00120423
FIX:
Reassigning the the SESSION:PRINTER-NAME as illustrated in the sample below makes Progress print at the desired printer, but the properties selected in the printer setup system dialog are lost.
ASSIGN SESSION:PRINTER-NAME = "NotDefaultPrinterHere".
SYSTEM-DIALOG PRINTER-SETUP.
SESSION:PRINTER-NAME = SESSION:PRINTER-NAME.
OUTPUT TO PRINTER.
DISPLAY 'Hello world' WITH STREAM-IO.
OUTPUT CLOSE.