Important: The information in this document is obsolete and should not be used for new development.
TPrStatus
ThePrPicFileprocedure (described on page 9-68) returns printing status information in a record of data typeTPrStatus. (You call thePrPicFileprocedure for a printer using deferred printing.)
TYPE TPrStatus = {printing status record} RECORD iTotPages: Integer; {total pages in print file} iCurPage: Integer; {current page number} iTotCopies: Integer; {total copies requested} iCurCopy: Integer; {current copy number} iTotBands: Integer; {reserved} iCurBand: Integer; {reserved} fPgDirty: Boolean; {TRUE if current page has been } { written to} fImaging: Boolean; {reserved} hPrint: THPrint; {handle to the active TPrint record} pPrPort: TPPrPort; {pointer to the active printing } { port} hPic: PicHandle; {handle to the active picture} END;
Field Description
iTotPages- The total number of pages being printed. This is the value of the
iLstPagefield minus the value of theiFstPagefield, which are both in theTPrJobrecord (described on page 9-44).iCurPage- The sequence number of the page currently being printed. For example, if the user prints pages 10 through 15 of a 20-page document, the value of the
iCurPagefield for page 10 is 1.iTotCopies- The total number of copies requested. This value may be different from the value of the
iCopiesfield in theTPrJobrecord.iCurCopy- The number of the current copy being printed.
iTotBands- Reserved.
iCurBand- Reserved.
fPgDirty- A flag indicating whether the printer has begun printing the current page. Set to
TRUEif there has been any imaging on the current page.fImaging- A flag indicating whether the printer driver is in the middle of an imaging call.
hPrint- A handle to the current
TPrintrecord (described on page 9-41).pPrPort- A pointer to the
TPrPortrecord for the current printing graphics port (described on page 9-48).hPic- A handle to the active picture. This is used by the printer driver; your application should not alter it.