Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 9 - Printing Manager / Printing Manager Reference
Printing Manager Routines / Printing a Document


PrCloseDoc

Use the PrCloseDoc procedure to close a printing graphics port previously opened with the PrOpenDoc 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
The PrCloseDoc procedure closes the current printing graphics port. You typically use PrCloseDoc after sending the last page of a document to the printer with the PrClosePage 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 calls PrCloseDoc.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the PrCloseDoc procedure are
Trap macroSelector
_PrGlue$08000484

SPECIAL CONSIDERATIONS
For deferred printing on an ImageWriter printer, call the PrError function (described on page 9-72) to find out whether spooling succeeded before using PrCloseDoc. If spooling succeeded, call the PrPicFile procedure (described on page 9-68).

SEE ALSO
For an example of the use of PrCloseDoc, see Listing 9-2 beginning on page 9-18.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996