Important: The information in this document is obsolete and should not be used for new development.
TSetRslBlk
You pass a record defined by the data typeTSetRslBlk
to thePrGeneral
procedure when you use thesetRslOp
opcode. You use this record to specify the resolutions that you want to use when printing the data associated with aTPrint
record. For information on how to use theTSetRslBlk
record with thePrGeneral
procedure, see "Determining and Setting the Resolution of the Current Printer" beginning on page 9-28.
TYPE TSetRslBlk = {set-resolution record} RECORD iOpCode: Integer; {the setRslOp opcode} iError: Integer; {result code returned by PrGeneral} lReserved: LongInt; {reserved} hPrint: THPrint; {handle to the current TPrint record} iXRsl: Integer; {x-direction resolution you want} iYRsl: Integer; {y-direction resolution you want} END;After calling
Field Description
iOpCode
- The opcode
setRslOp
.iError
- The result code returned by
PrGeneral
.lReserved
- Reserved.
hPrint
- A handle to a
TPrint
record, which is described onpage 9-41
. Your application should have already created thisTPrint
record and passed it to thePrintDefault
orPrValidate
routine to make sure that all of the information in theTPrint
record is valid.
iXRsl
- The resolution in the x direction that you want the printer to use when printing the data associated with the
TPrint
record specified in thehPrint
field.iYRsl
- The resolution in the y direction that you want the printer to use when printing the data associated with the
TPrint
record specified in thehPrint
field.PrGeneral
with thesetRslOp
opcode, you can determine whether the request was successful by examining theiError
field of theTSetRslBlk
record. If theiError
field returnsnoErr
, the Printing Manager updated theTPrint
record with the specified resolution, which the printer uses when printing the data associated with thisTPrint
record. If theiError
field returnsnoSuchRsl
, the current printer doesn't support the requested resolution, and the printer driver does not change the setting in theTPrint
record.