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 / Initializing and Validating TPrint Records


When you create a TPrint record, you use the PrintDefault procedure to initialize the fields of the TPrint record according to the current printer's default values for resolution, number of copies, and so on.

PROCEDURE PrintDefault (hPrint: THPrint);
A handle to a TPrint record (described on page 9-41), which may be a new record or an existing one from a document.
The default values for the current printer are stored in the printer driver's resource file. The PrintDefault procedure puts these values in the TPrint record, replacing the ones that may already be there. The PrintDefault procedure calls the PrValidate function (described in the next section) to ensure that the TPrint record is compatible with the current version of the printer driver.

You should never call PrintDefault between the pages of a document.

The trap macro and routine selector for the PrintDefault procedure are
Trap macroSelector

See "The TPrint Record and the Printing Loop" on page 9-10 and see page 9-41 for information on the TPrint record. For an example of the use of PrintDefault, see Listing 9-7 on page 9-34.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996