Important: The information in this document is obsolete and should not be used for new development.
PrintDefault
When you create aTPrintrecord, you use thePrintDefaultprocedure to initialize the fields of theTPrintrecord according to the current printer's default values for resolution, number of copies, and so on.
PROCEDURE PrintDefault (hPrint: THPrint);
hPrint- A handle to a
TPrintrecord (described on page 9-41), which may be a new record or an existing one from a document.DESCRIPTION
The default values for the current printer are stored in the printer driver's resource file. ThePrintDefaultprocedure puts these values in theTPrintrecord, replacing the ones that may already be there. ThePrintDefaultprocedure calls thePrValidatefunction (described in the next section) to ensure that theTPrintrecord is compatible with the current version of the printer driver.SPECIAL CONSIDERATIONS
You should never callPrintDefaultbetween the pages of a document.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrintDefaultprocedure are
Trap macro Selector _PrGlue $20040480 SEE ALSO
See "The TPrint Record and the Printing Loop" on page 9-10 and see page 9-41 for information on theTPrintrecord. For an example of the use ofPrintDefault, see Listing 9-7 on page 9-34.