BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

OnPrinterUpdate Event

Called when printer setting is updated.

Function OnPrinterUpdate(uID As Long,
                         JobInfo As IPrintJobInfo) As Long

public class PrintJobMonitor {
   delegate prnMonitorResponse OnPrinterUpdateEventHandler(int uID, PrintJobInfo JobInfo);
   event OnPrinterUpdateEventHandler OnPrinterUpdate;
}

public interface IPrintJobMonitorEvents {
   prnMonitorResponse OnPrinterUpdateEventHandler(int uID, PrintJobInfo JobInfo);
}

public class PrintJobMonitor {
   public IPrintJobMonitorEvents events;
}

Parameters

Return Values

Use one of the values specified in prnMonitorResponse as a return value.

Remarks

This event is called when the printer setting is modified by someone other than the owner of this print job.

Example Usage

' Declare variable with "WithEvents" keyword
Private WithEvents oJobMonitor As easyPDFPrinter.PrintJobMonitor

Private Function oJobMonitor_OnPrinterInit(ByVal uID As Long, ByVal JobInfo As easyPDFPrinter.PrintJobInfo) As Long
    ' ...
    oJobMonitor_OnPrinterInit = PRN_MON_CONTINUE_CONVERSION
End Function

Private Function oJobMonitor_OnPrinterUpdate(ByVal uID As Long, ByVal JobInfo As easyPDFPrinter.PrintJobInfo) As Long
    ' ...
    oJobMonitor_OnPrinterUpdate = PRN_MON_CONTINUE_CONVERSION
End Function

Private Function oJobMonitor_OnPrinterStart(ByVal uID As Long) As Long
    ' ...
    oJobMonitor_OnPrinterStart = PRN_MON_CONTINUE_CONVERSION
End Function

Private Function oJobMonitor_OnPageStart(ByVal uID As Long, ByVal PageNumber As Long) As Long
    ' ...
    oJobMonitor_OnPageStart = PRN_MON_CONTINUE_CONVERSION
End Function

Private Function oJobMonitor_OnPrinterEnd(ByVal uID As Long, ByVal Result As prnPrinterResult) As Long
    ' ...
    oJobMonitor_OnPrinterEnd = PRN_MON_CONTINUE_CONVERSION
End Function

' ...

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oJobMonitor = oPrinter.PrintJobMonitor
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"