The StartDocEx event is fired when the selected printer starts to print a document.
The StartDocEx event is available since Printer Version 14.98 and provides more information than the older StarDoc event.
Received Parameters
PrinterName: The name of the Printer that sent the event.
JobID The Windows Job ID of the print job.
DocumentName The name of the printed document. (This parameter is provided by the printing application and it usually contains the Title of the printed document. It is not output filename of the printer driver and not the filename of the printed document.)
GroupFileName The name (with the full path) of the generated group file.