Method OnNativePrintDocumentBeginPrint
OnNativePrintDocumentBeginPrint(object?, CancelEventArgs)
Raises the event signaling the start of a native print document operation.
protected virtual void OnNativePrintDocumentBeginPrint(object? sender, CancelEventArgs e)
Parameters
senderobjectThe source of the event, typically the print document initiating the operation.
eCancelEventArgsA CancelEventArgs instance that can be used to cancel the print operation.
Remarks
Override this method to perform custom actions when a native print document begins
printing. Setting e.Cancel to true will abort the print
operation.