Important: The information in this document is obsolete and should not be used for new development.
PrCloseDoc
Use thePrCloseDocprocedure to close a printing graphics port previously opened with thePrOpenDocprocedure.
PROCEDURE PrCloseDoc (pPrPort: TPPrPort);
pPrPort- A pointer to a printing graphics port. (The
TPrPortrecord that defines a printing graphics port is described on page 9-48.)DESCRIPTION
ThePrCloseDocprocedure closes the current printing graphics port. You typically usePrCloseDocafter sending the last page of a document to the printer with thePrClosePageprocedure (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 callsPrCloseDoc.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrCloseDocprocedure are
Trap macro Selector _PrGlue $08000484 SPECIAL CONSIDERATIONS
For deferred printing on an ImageWriter printer, call thePrErrorfunction (described on page 9-72) to find out whether spooling succeeded before usingPrCloseDoc. If spooling succeeded, call thePrPicFileprocedure (described on page 9-68).SEE ALSO
For an example of the use ofPrCloseDoc, see Listing 9-2 beginning on page 9-18.