Important: The information in this document is obsolete and should not be used for new development.
PrJobDialogYou can use the
PrJobDialogfunction to display the job dialog box provided by the resource file for the current printer driver.
FUNCTION PrJobDialog (hPrint: THPrint): Boolean;
- A handle to a
TPrintrecord (described on page 9-41), which may be a new record or an existing one from a document.
PrJobDialogfunction gets the initial settings to display in the job dialog box from the
TPrintrecord specified in the
hPrintparameter. The user specifies the print quality, the range of pages to print, and other information in the job dialog box. Your application should display this dialog box when the user chooses Print from the File menu.
If the user confirms the dialog box, the
PrJobDialogfunction updates both the
TPrintrecord and the printer driver resource file and calls the
PrValidatefunction, and the
TRUE. Even if the function returns
PrJobDialogfunction may have updated the
SPECIAL CONSIDERATIONSYou should proceed with the requested printing operation only if the
TRUE. You should never call
PrJobDialogbetween the pages of a document.
ASSEMBLY-LANGUAGE INFORMATIONThe trap macro and routine selector for the
Trap macro Selector _PrGlue $32040488
SEE ALSOSee Figure 9-5 on page 9-7 for an example of a job dialog box. For more information on the use of a job dialog box, see "Getting Printing Preferences From the User" beginning on page 9-5. For information on how to customize a job dialog box, see "Altering the Style or Job Dialog Box" beginning on page 9-32.