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 typeTSetRslBlkto thePrGeneralprocedure when you use thesetRslOpopcode. You use this record to specify the resolutions that you want to use when printing the data associated with aTPrintrecord. For information on how to use theTSetRslBlkrecord with thePrGeneralprocedure, 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
TPrintrecord, which is described onpage 9-41. Your application should have already created thisTPrintrecord and passed it to thePrintDefaultorPrValidateroutine to make sure that all of the information in theTPrintrecord is valid.iXRsl- The resolution in the x direction that you want the printer to use when printing the data associated with the
TPrintrecord specified in thehPrintfield.iYRsl- The resolution in the y direction that you want the printer to use when printing the data associated with the
TPrintrecord specified in thehPrintfield.PrGeneralwith thesetRslOpopcode, you can determine whether the request was successful by examining theiErrorfield of theTSetRslBlkrecord. If theiErrorfield returnsnoErr, the Printing Manager updated theTPrintrecord with the specified resolution, which the printer uses when printing the data associated with thisTPrintrecord. If theiErrorfield returnsnoSuchRsl, the current printer doesn't support the requested resolution, and the printer driver does not change the setting in theTPrintrecord.