Important: The information in this document is obsolete and should not be used for new development.
Data Structures
This section shows the Pascal data structures defined by the Printing Manager.You must create or ensure a valid
TPrintrecord for every document before you can print it. This record specifies printer characteristics and the characteristics of a particular print job.Contained in every
TPrintrecord is aTPrInforecord, which specifies the vertical and horizontal resolutions, of the current printer and describes the page rectangle. ATPrJobrecord, which contains information about a particular print job--such as the range of pages to print, the number of copies, and a pointer to an idle procedure--is also contained in aTPrintrecord. ATPrStlrecord, which is also contained in aTPrintrecord, contains the device number of the current printer and the feed type to be used when printing the document.The
PrPicFileprocedure returns printing status information in a record of data typeTPrStatus. (You call thePrPicFileprocedure for a printer using deferred printing.)The
TPrDlgrecord contains information necessary when altering the default style or job dialog box.The
TPrPortrecord describes a printing graphics port--the environment into which your application draws in order to print.You use the
TGnlData,TGetRslBlk,TSetRslBlk,TDftBitsBlk, andTGetRotnBlkrecords in conjunction with thePrGeneralprocedure.In almost all cases, printer drivers use the reserved fields in these data structures for device-dependent information. You should not rely on the availability or accuracy of this information when printing from your application.