Important: The information in this document is obsolete and should not be used for new development.
PrCloseDoc
Use thePrCloseDoc
procedure to close a printing graphics port previously opened with thePrOpenDoc
procedure.
PROCEDURE PrCloseDoc (pPrPort: TPPrPort);
pPrPort
- A pointer to a printing graphics port. (The
TPrPort
record that defines a printing graphics port is described on page 9-48.)DESCRIPTION
ThePrCloseDoc
procedure closes the current printing graphics port. You typically usePrCloseDoc
after sending the last page of a document to the printer with thePrClosePage
procedure (described on page 9-67).When you use
PrCloseDoc
to close a printing graphics port, printer drivers respond in a manner appropriate for the printers they control. Many drivers, including the LaserWriter driver, start a print job after your application callsPrCloseDoc
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrCloseDoc
procedure are
Trap macro Selector _PrGlue $08000484 SPECIAL CONSIDERATIONS
For deferred printing on an ImageWriter printer, call thePrError
function (described on page 9-72) to find out whether spooling succeeded before usingPrCloseDoc
. If spooling succeeded, call thePrPicFile
procedure (described on page 9-68).SEE ALSO
For an example of the use ofPrCloseDoc
, see Listing 9-2 beginning on page 9-18.