Important: The information in this document is obsolete and should not be used for new development.
TPrInfo
The record defined by the data typeTPrInfo
contains printer information. TheprInfo
field of theTPrint
record (described in the preceding section) contains aTPrInfo
record, which in turn contains the vertical and horizontal resolutions of the printer and the coordinates of the page rectangle.
TYPE TPrInfo = {printer information record} RECORD iDev: Integer; {reserved} iVRes: Integer; {vertical resolution of printer, in dpi} iHRes: Integer; {horizontal resolution of printer, in dpi} rPage: Rect; {the page rectangle} END;
Field Description
iDev
- Reserved.
iVRes
- The printer's vertical resolution in dots per inch. The default value is 72, unless you have previously set the value for this record by calling the
PrGeneral
procedure with thesetRslOp
opcode (described in "Determining and Setting the Resolution of the Current Printer" on page 9-28).iHRes
- The printer's horizontal resolution in dots per inch. The default value is 72, unless you have previously set the value for this record by calling the
PrGeneral
procedure with thesetRslOp
opcode.rPage
- The page rectangle. As illustrated in Figure 9-6 on page 9-9, this rectangle is inside the paper rectangle, which is specified by the
rPaper
field of theTPrint
record, described on page 9-41. You use thePrStlDialog
function (described on page 9-58) to display the style dialog box. After the user closes the style dialog box, thePrStlDialog
function updates therPage
field according to the user's choices.