Share via


PosPrinter.EndInsertion Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Ends form-insertion processing.

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

Syntax

'Declaration
Public MustOverride Sub EndInsertion
public abstract void EndInsertion ()
public:
virtual void EndInsertion () abstract
public abstract void EndInsertion ()
public abstract function EndInsertion ()

Remarks

When it is called, the service object takes the printer out of form-insertion mode. If the slip device has form "jaws," EndInsertion closes them. If no form is present, an Extended exception is thrown, by using the ExtendedErrorSlpEmpty constant.

If it is successful, EndInsertion increments the StatisticFormInsertionCount statistic.

EndInsertion is paired with the BeginInsertion method for controlling form insertion. The application can call EndInsertion immediately after a successful BeginInsertion to use printer sensors to determine when a form is positioned within the slip printer. Alternatively, the application may prompt the user and wait for a key press before it calls EndInsertion.

Before it calls this method, the application must open, claim, and enable the device.

EndInsertion may throw a PosControlException with the following ErrorCodes:

Value

Meaning

Busy

The printer is currently being used.

Illegal

The printer is not in insertion mode (the BeginInsertion method has not been called before calling EndInsertion).

Extended

ExtendedErrorCoverOpen: The device was taken out of insertion mode while the printer cover was open.

ExtendedErrorSlpEmpty: The device was taken out of insertion mode without a form being inserted.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace
PosPrinter.BeginInsertion Method
PosPrinter.BeginRemoval Method
EndRemoval