Important: The information in this document is obsolete and should not be used for new development.
PrPicFile
Use thePrPicFile
procedure to complete deferred printing.
PROCEDURE PrPicFile (hPrint: THPrint; pPrPort: TPPrPort; pIOBuf: Ptr; pDevBuf: Ptr; VAR prStatus: TPrStatus);
hPrint
- A handle to a
TPrint
record (described on page 9-41) for a document.pPrPort
- A pointer to the printing graphics port. (The
TPrPort
record that defines a printing graphics port is described on page 9-48.) If this parameter isNIL
, thePrPicFile
procedure 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
NIL
to 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
NIL
so thatPrPicFile
allocates a buffer in a heap.prStatus
- A
TPrStatus
record thatPrPicFile
uses to report on the current page number, current copy, or current file being spooled. You can then display this information to the user. TheTPrStatus
record is described on page 9-46.DESCRIPTION
ThePrPicFile
procedure sends a file spooled for deferred printing to the printer.You can determine whether a user has chosen deferred printing by testing for the
bSpoolLoop
constant in thebJDocLoop
field of theTPrJob
record contained in theTPrint
record specified in thehPrint
parameter. If thebJDocLoop
field contains the value represented by thebSpoolLoop
constant, call thePrPicFile
procedure, which sends the spool file to the printer.Your application should normally call
PrPicFile
after thePrCloseDoc
procedure (described on page 9-65).SPECIAL CONSIDERATIONS
Do not pass, in thepPrPort
parameter, a pointer to the same printing graphics port you received from thePrOpenDoc
function (described on page 9-64). If that port was allocated byPrOpenDoc
itself (that is, if thepPrPort
parameter toPrOpenDoc
wasNIL
), thenPrCloseDoc
will 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 thePrPicFile
procedure are
Trap macro Selector _PrGlue $60051480 SEE ALSO
For an example of the use ofPrPicFile
, see Listing 9-2 beginning on page 9-18.