PC_PRINTER_DEFAULT_PROPERTIES

Sets one or more of the properties of the default printer for all PC_PRINTER_ routines.

Syntax:

call "PC_PRINTER_DEFAULT_PROPERTIES" using by value     flags
                                           by reference properties
                                           returning    status-code

Parameters

flags
Using call prototype (see Library Routines - Key) : cblt-os-flags
Picture: Numeric literal, pic x(4) comp-5, or pic x(8) comp-5 (64-bit native programs only).
properties
Group predefined as cblt-printer-properties containing:
01 cblt-printer-properties typedef 
  03 cblte-pp-len           cblt-x2-comp5    pic x(2) comp-5. 
  03 cblte-pp-papersize     cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-paperlength   cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-paperwidth    cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-scale         cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-copies        cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-papertray     cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-printquality  cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-color         cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-duplex        cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-orientation   cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-yresolution   cblt-sx2-comp5   pic s9(4) comp-5. 
status-code
See Library Routines - Key

On Entry:

flags
Flags controlling which of the properties to change. Value is a combination of the following:
P-PAPERSIZE 1
P-PAPERLENGTH 2
P-PAPERWIDTH 4
P-SCALE 8
P-COPIES 16
P-PAPERTRAY 32
P-PRINTQUALITY 64
P-COLOR 128
P-DUPLEX 256
P-ORIENTATION 512
P-YRESOLUTION 1024
cblte-pp-len
Must be set to the size of the properties buffer.
cblte-pp-papersize
Paper size, using one of the DMPAPER- constants defined in the file WINDOWS.CPY.
cblte-pp-paperlength
Paper length in tenths of a millimeter for native COBOL code, and in hundreths of an inch for .NET COBOL.
cblte-pp-paperwidth
Paper width in tenths of a millimeter for native COBOL code, and in hundreths of an inch for .NET COBOL.
cblte-pp-scale
Factor by which the output is to be scaled.
cblte-pp-copies
The number of copies to be printed.
cblte-pp-papertray
The number of the paper tray to be used, using one of the DMBIN- constants defined in the file WINDOWS.CPY.
cblte-pp-printquality
The print quality, using one of the DMRES- constants defined in the file WINDOWS.CPY, or if a positive value is used, the horizontal resolution in dots per inch.
cblte-pp-color
Switch between monochrome and color printing using one of the DMCOLOR- constants.
cblte-pp-duplex
Select duplex or double-sided printing using one of the DMDUP- constants.
cblte-pp-orientation
Select the paper orientation using one of the DMORIENT- constants.
cblte-pp-yresolution
The vertical resolution in dots per inch.

Comments:

The file WINDOWS.CPY is provided with this COBOL system.

Default parameters are not validated until the default printer is opened.