Important: The information in this document is obsolete and should not be used for new development.
PrCloseDocprocedure to close a printing graphics port previously opened with the
PROCEDURE PrCloseDoc (pPrPort: TPPrPort);
- A pointer to a printing graphics port. (The
TPrPortrecord that defines a printing graphics port is described on page 9-48.)
PrCloseDocprocedure closes the current printing graphics port. You typically use
PrCloseDocafter sending the last page of a document to the printer with the
PrClosePageprocedure (described on page 9-67).
When you use
PrCloseDocto 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
ASSEMBLY-LANGUAGE INFORMATIONThe trap macro and routine selector for the
Trap macro Selector _PrGlue $08000484
SPECIAL CONSIDERATIONSFor deferred printing on an ImageWriter printer, call the
PrErrorfunction (described on page 9-72) to find out whether spooling succeeded before using
PrCloseDoc. If spooling succeeded, call the
PrPicFileprocedure (described on page 9-68).
SEE ALSOFor an example of the use of
PrCloseDoc, see Listing 9-2 beginning on page 9-18.