Important: The information in this document is obsolete and should not be used for new development.
PrintDefault
When you create aTPrint
record, you use thePrintDefault
procedure to initialize the fields of theTPrint
record 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
TPrint
record (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. ThePrintDefault
procedure puts these values in theTPrint
record, replacing the ones that may already be there. ThePrintDefault
procedure calls thePrValidate
function (described in the next section) to ensure that theTPrint
record is compatible with the current version of the printer driver.SPECIAL CONSIDERATIONS
You should never callPrintDefault
between the pages of a document.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePrintDefault
procedure 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 theTPrint
record. For an example of the use ofPrintDefault
, see Listing 9-7 on page 9-34.