Kbase P123944: Report Builder: Can the Report Builder Printer Setup Dialog be made to always highlight the session
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/05/2007 |
|
Status: Unverified
GOAL:
Report Builder: Can the Report Builder's Printer Setup Dialog be made to always highlight the session's default printer?
GOAL:
Can the selection of the printer to highlight in the Report Builder's Printer Setup Dialog be controlled programmatically?
GOAL:
How does the Report Report Builder's Printer Setup Dialog decide which printer to highlight?
GOAL:
How can the Report Builder's Printer Setup Dialog be bypassed?
GOAL:
How to replace the Report Builder's Printer Setup Dialog by the SYSTEM Printer Setup Dialog provided by the execution of the SYSTEM-DIALOG PRINTER-SETUP 4GL statement?
FIX:
The selection of the printer to be highlighted in the Report Builder Printer Setup Dialog is beyond the control of the 4GL developers and the Report Builder reports designers. The following rules govern the Report Builder?s behavior regarding the selection the highlighted printer in the Report Builder Printer Setup Dialog:
1. If the current session?s default printer was the default printer at the time of the report creation, then it will be highlighted in the Report Builder Printer Setup Dialog.
2. If the current session has the printer that was the default printer at the time of the report creation, then that printer will be highlighted in the Report Builder Printer Setup Dialog regardless of whether it is the current session?s default printer or not.
3. If the current session does not have the printer that was the default printer at the time of the report creation, then the first printer on the session?s printer list will be highlighted in the Report Builder Printer Setup Dialog regardless of whether it is the current session?s default printer or not.
It is possible to bypass the Report Builder's Printer Setup Dialog and use the SYSTEM Printer Setup Dialog provided by the execution of the SYSTEM-DIALOG PRINTER-SETUP 4GL statement using logic along the following lines:
1. Execute the SYSTEM-DIALOG PRINTER-SETUP 4GL statement only when the user explicitly indicates the need to send the printed output to a non default printer.
2. Set the RB-PRINTER-NAME = SESSION:PRINTER-NAME. This way, if the user wants the printed output to go to the default session printer, it will go there without having to open the SYSTEM Printer Setup Dialog and choose a printer as that printer is the SESSION:PRINTER-NAME by default. Also, if the user wants the printed output to go to a non default session printer, then executing the SYSTEM-DIALOG PRINTER-SETUP 4GL statement sets the SESSION:PRINTER-NAME to the printer selected by the user as desired.