PC_PRINTER_OPEN
Opens a printer channel, giving it a document title, and optionally displaying
printer control, font, and progress indicator dialog boxes
Syntax:
call "PC_PRINTER_OPEN" using printer-handle
document-title
by value flags
by value window-handle
returning status-code
Parameters:
|
Using call prototype (see Library Routines - Key) |
Picture (32-bit systems) |
| printer-handle |
cblt-x4-comp5 |
pic x(4) comp-5. |
| document-title |
Group predefined as cblt-printer-name containing: |
Group containing: |
| |
cblte-pn-name-length |
|
cblt-x2-comp5 |
|
pic x(2) comp-5. |
| |
cblte-pn-name |
|
pic x(n). |
|
pic x(n). |
| flags |
Numeric literal or cblt-x4-comp5 |
Numeric literal or pic x(4) comp-5. |
| window-handle |
Numeric literal or cblt-x4-comp5 |
Numeric literal or pic x(4) comp-5. |
| status-code |
See Library Routines - Key |
On Entry:
| cblte-pn-name-length |
The length of the document title |
| cblte-pn-name |
The title of the document to be printed |
| flags |
A set of bits to define printer options:
| bit 0 |
Display a printer control dialog to allow you to define the printer characteristics
(cannot be used with bit 2 or bit 3) |
| bit 1 |
Display a font dialog box to allow you to define the default font for the
document |
| bit 2 |
Print in portrait orientation (cannot be used with bit 0 or bit 3) |
| bit 3 |
Print in landscape orientation (cannot be used with bit 0 or bit 2) |
| bit 4 |
Display a progress indicator dialog box |
All remaining bits are reserved for future use and should not be set |
| window-handle |
Handle of parent window to use for positioning of dialog boxes. If handle
is 0 the dialog boxes will be positioned in a system-dependent position on
the screen. |
On Exit:
See Also: