Important: The information in this document is obsolete and should not be used for new development.
TGnlData
The record of data typeTGnlData
is the basic record used by thePrGeneral
procedure (described beginning on page 9-69). Although no opcode ofPrGeneral
uses theTGnlData
record, all other records created forPrGeneral
are based on this record.
TYPE TGnlData = RECORD iOpCode: Integer; {opcode passed to PrGeneral} iError: Integer; {result code returned by PrGeneral} lReserved: LongInt; {more fields here depending on opcode} END;
Field Description
iOpCode
- The opcode that is passed to
PrGeneral
to obtain the requested feature. There are five possible opcodes; you can use the following constants or the values they represent to specify one of these opcodesCONST {opcodes used with PrGeneral} getRslDataOp = 4; {get resolutions for the } { current printer} setRslOp = 5; {set resolutions for a } { TPrint record} draftBitsOp = 6; {force enhanced draft- } { quality printing} noDraftBitsOp = 7; {cancel enhanced draft- } { quality printing} getRotnOp = 8; {get page orientation of } { a TPrint record}
iError
- The result code returned by
PrGeneral
.lReserved
- Reserved. Additional fields may follow this field, depending on the opcode used. See the descriptions of the
TGetRslBlk
(in the next section),TSetRslBlk
(on page 9-51),TDftBitsBlk
(on page 9-52), andTGetRotnBlk
(on page 9-53) records.