Version 6.3.8 for Windows
 —  Dialog Component Reference  —

SYSTEM-PRINTER-SETUP Action

This document covers the following topics:


Description

Invokes a dialog box that allows the end user to assign a physical printer to a logical device name. You can assign this logical device name to a report using the DEFINE PRINTER statement.

Top of page

Parameters

Name/Data Type Explanation
HANDLE OF GUI Input

The parent dialog element of the printer assignment dialog box.

Logical device (A8) Input/Output

The logical device name to which the printer is assigned. Possible values:

"LPT1" to "LPT31", "lpt1" to "lpt31".

Commit (L) Output (optional parameter)

Returns TRUE if the user closed the dialog box via the 'OK' push button, or FALSE if the dialog was cancelled or if an error occurred.

Response (I4) Output

Natural error (if applicable).

Note:
The first two parameters are mandatory.

Example:

 PROCESS GUI ACTION SYSTEM-PRINTER-SETUP WITH #PB-1 'LPT1' 
 GIVING #RESPONSE 

Top of page