Important: The information in this document is obsolete and should not be used for new development.
PrPicFile
Use thePrPicFileprocedure to complete deferred printing.
PROCEDURE PrPicFile (hPrint: THPrint; pPrPort: TPPrPort; pIOBuf: Ptr; pDevBuf: Ptr; VAR prStatus: TPrStatus);
hPrint- A handle to a
TPrintrecord (described on page 9-41) for a document.pPrPort- A pointer to the printing graphics port. (The
TPrPortrecord that defines a printing graphics port is described on page 9-48.) If this parameter isNIL, thePrPicFileprocedure allocates a new printing graphics port in a heap.pIOBuf- A pointer to an area of memory to be used as an input/output buffer. This parameter should be
NILto use the volume buffer for the spool file's volume. If you allocate your own buffer, it must be exactly 522 bytes.pDevBuf- A pointer to a device-dependent buffer. This parameter should be
NILso thatPrPicFileallocates a buffer in a heap.prStatus- A
TPrStatusrecord thatPrPicFileuses to report on the current page number, current copy, or current file being spooled. You can then display this information to the user. TheTPrStatusrecord is described on page 9-46.DESCRIPTION
ThePrPicFileprocedure sends a file spooled for deferred printing to the printer.You can determine whether a user has chosen deferred printing by testing for the
bSpoolLoopconstant in thebJDocLoopfield of theTPrJobrecord contained in theTPrintrecord specified in thehPrintparameter. If thebJDocLoopfield contains the value represented by thebSpoolLoopconstant, call thePrPicFileprocedure, which sends the spool file to the printer.Your application should normally call
PrPicFileafter thePrCloseDocprocedure (described on page 9-65).SPECIAL CONSIDERATIONS
Do not pass, in thepPrPortparameter, a pointer to the same printing graphics port you received from thePrOpenDocfunction (described on page 9-64). If that port was allocated byPrOpenDocitself (that is, if thepPrPortparameter toPrOpenDocwasNIL), thenPrCloseDocwill already have disposed of the port, making your pointer to it invalid. Of course, if you earlier provided your own storage inPrOpenDoc, there's no reason you can't use the same storage again forPrPicFile.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrPicFileprocedure are
Trap macro Selector _PrGlue $60051480 SEE ALSO
For an example of the use ofPrPicFile, see Listing 9-2 beginning on page 9-18.