Asynchronous Events

<< Click to Display Table of Contents >>

Navigation:  Drivers API > IPXCPrinter Interface > Events >

Asynchronous Events


 

PRO SDK Icon Asynchronous Events

 


 

The following asynchronous events are supported in the PDF-XChange Drivers API:

 

Event OnStartDoc is fired when printing starts for a new document.

Event OnStartPage is fired when printing starts to for a new page.

Event OnEndPage is fired when printing is complete for a page.

Event OnEndDoc is fired when the GDI spools a complete document.

 

Event OnStartDoc is fired when printing starts for a new document.

 

Please note that all declarations and parameters are case-sensitive:

 

Declaration

 

C#

 

event OnStartDoc(int JobIDstring lpszDocNamestring lpszAppName);

 

C++

 

HRESULT OnStartDoc(LONG JobIDBSTR lpszDocNameBSTR lpszAppName);

 

VB

 

Event OnStartDoc(JobID As LonglpszDocName As StringlpszAppName As String)

 

Parameters

 

JobID

Internal job identifier.

 

lpszDocName

Specifies the document name when passed from the printing application.

 

lpszAppName

Specifies the module name of the printing application.

 

Return Values

 

The PDF-XChange Drivers API ignores return values from this event.

 

 

Event OnStartPage is fired when printing starts for a new page.

 

Declaration

 

C#

 

event OnStartPage(int JobIDint nPageNumber);

 

C++

 

HRESULT OnStartPage(LONG JobIDLONG nPageNumber);

 

VB

 

Event OnStartPage(JobID As LongnPageNumber As Long)

 

Parameters

 

JobID

Internal job identifier.

 

nPageNumber

Zero-based page number when spooling.

 

Return Values

 

The PDF-XChange Drivers API ignores return values from this event.

 

 

Event OnEndPage is fired when printing is complete for a page.

 

Declaration

 

C#

 

event OnEndPage(int JobIDint nPageNumber);

 

C++

 

HRESULT OnEndPage(LONG JobIDLONG nPageNumber);

 

VB

 

Event OnEndPage(JobID As LongnPageNumber As Long)

 

Parameters

 

JobID

Internal job identifier.

 

nPageNumber

Zero-based page number spooled.

 

Return Values

 

The PDF-XChange Drivers API ignores return values from this event.

 

 

Event OnEndDoc is fired when the GDI spools a complete document.

 

Declaration

 

C#

 

event OnEndDoc(int JobIDint bOK);

 

C++

 

HRESULT OnEndDoc(LONG JobIDLONG bOK);

 

VB

 

Event OnEndDoc(JobID As LongbOK As Long)

 

Parameters

 

JobID

Internal job identifier.

 

bOK

If this parameter is True then documents have fully spooled and the PDF-XChange Drivers API will continue processing and produce the files. If an error occurred during printing (such as the cancellation of the print job) then documents will not be processed further.

 

Return Values

 

The PDF-XChange Drivers API ignores return values from this event.