Important: The information in this document is obsolete and should not be used for new development.
TPrInfo
The record defined by the data typeTPrInfocontains printer information. TheprInfofield of theTPrintrecord (described in the preceding section) contains aTPrInforecord, 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
PrGeneralprocedure with thesetRslOpopcode (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
PrGeneralprocedure with thesetRslOpopcode.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
rPaperfield of theTPrintrecord, described on page 9-41. You use thePrStlDialogfunction (described on page 9-58) to display the style dialog box. After the user closes the style dialog box, thePrStlDialogfunction updates therPagefield according to the user's choices.