PrJobMerge
You can use the PrJobMerge procedure to apply the same information previously specified by the user through the job dialog box to several TPrint records. This is useful when the user prints from the Finder. The PrJobMerge procedure allows you to solicit information from the user just once and then use this information to print several documents.
PROCEDURE PrJobMerge (hPrintSrc: THPrint; hPrintDst: THPrint);
hPrintSrc
- A handle to a
TPrint record (described on page 9-41) as previously returned by the PrJobDialog function (described on page 9-59).
hPrintDst
- A handle to a
TPrint record for another document.
DESCRIPTION
The PrJobMerge procedure first calls the PrValidate function (described on page 9-57) for both TPrint records referenced by the hPrintSrc and hPrintDst parameters. It then copies all of the information previously set as a result of a job dialog box from the TPrint record in the hPrintSrc parameter to the TPrint record in the hPrintDst parameter while preserving the values set by the style dialog box for that TPrint record (for instance, landscape orientation). Finally, the PrJobMerge procedure makes sure that all the fields of the TPrint record named by the hPrintDst parameter are internally self-consistent. You must call PrJobMerge for each document the user wants to print.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the PrJobMerge procedure are
| Trap macro | Selector |
| _PrGlue | $5804089C |