PosPrinter.OutputCompleteEvent Event (POS for .NET v1.12 SDK Documentation)

2/27/2008

Queued by the service object to notify the application when asynchronous processing that corresponds to an OutputID has successfully completed.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Event OutputCompleteEvent As OutputCompleteEventHandler
public abstract event OutputCompleteEventHandler OutputCompleteEvent
public:
virtual event OutputCompleteEventHandler^ OutputCompleteEvent {
    void add (OutputCompleteEventHandler^ value) abstract;
    void remove (OutputCompleteEventHandler^ value) abstract;
}
/** @event */
public abstract void add_OutputCompleteEvent (OutputCompleteEventHandler value)

/** @event */
public abstract void remove_OutputCompleteEvent (OutputCompleteEventHandler value)

Remarks

Typically, the application will call a method, such as PrintNormal, to start asynchronous output processing. The service object holds the request in program memory to be delivered to the printer as soon as the printer can receive and process it. In the interim, the service object updates the PosPrinter.OutputID property that uses the identifier for the output request, then returns control from the method to the application. When the printer completes processing of the output request, the service object queues an OutputCompleteEvent event to the application. This includes the OutputID value in the OutputCompleteEventArgs.OutputID property.

If the application exits the output request before it completes—for example, by calling the ClearOutput method or responding to an ErrorEvent event with a Clear instruction, then the service object will not queue an OutputCompleteEvent event.

Note

Asynchronous output is always performed on a first-in, first-out basis.

See Also

Reference

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace
PosPrinter.OutputId Property
OutputCompleteEventHandler Delegate
PosPrinter.ErrorEvent Event