Important: The information in this document is obsolete and should not be used for new development.
TGetRslBlk
You pass a record defined by the data typeTGetRslBlk
to thePrGeneral
procedure when you use thegetRslDataOp
opcode. When thePrGeneral
procedure completes, theTGetRslBlk
record contains the resolutions available on the current printing device. For information on how to use theTGetRslBlk
record with thePrGeneral
procedure, see "Determining and Setting the Resolution of the Current Printer" on page 9-28.
TYPE TGetRslBlk = {get-resolution record} RECORD iOpCode: Integer; {the getRslDataOp opcode} iError: Integer; {result code returned by PrGeneral} lReserved: LongInt; {reserved} iRgType: Integer; {printer driver version number} xRslRg: TRslRg; {x-direction resolution range} yRslRg: TRslRg; {y-direction resolution range} iRslRecCnt: Integer; {number of resolution records} rgRslRec: {array of resolution records} ARRAY[1..27] OF TRslRec; END;
Field Description
iOpCode
- The opcode
getRslDataOp
.iError
- The result code returned by
PrGeneral
.lReserved
- Reserved.
iRgType
- The version number returned by the printer driver.
xRslRg
- The resolution range supported for the x direction. This field contains a record defined by the data type
TRslRg
:TYPE TRslRg = RECORD iMin: Integer; {minimum resolution supported} iMax: Integer; {maximum resolution supported} END;
- If the current printer does not support variable resolution, the values in the
iMin
andiMax
fields are 0.yRslRg
- The resolution range supported for the y direction. This field contains a record defined by the data type
TRslRg
, which is shown in the preceding description for thexRslRg
field. If the current printer does not support variable resolution, the values in theiMin
andiMax
fields are 0.iRslRecCnt
- The number of
TRslRec
records used by a particular printer driver (up to 27) if it supports discrete resolution. If it supports variable resolution, this field contains 0. TheTRslRec
record is described next.rgRslRec
- An array of records defined by the
TRslRec
data type, each specifying a discrete resolution at which the current printer can print an image. A printer driver may contain up to 27 separateTRslRec
records.TYPE TRslRec = RECORD iXRsl: Integer; {discrete resolution, } { x direction} iYRsl: Integer; {discrete resolution, } { y direction} END;