Share via


FiscalPrinter.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 printer is taken out of form insertion mode. If the slip device has forms "jaws," EndInsertion closes them. If a form is detected in the device, a successful status of Success is returned to the application. If no form is present, an extended error status ExtendedErrorSlipEmpty is returned.

EndInsertion is paired with the BeginInsertion method for controlling form insertion. The application may choose to call EndInsertion immediately after a successful BeginInsertion to use the 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.

EndInsertion may cause a PosControlException exception to be thrown with one of the following ErrorCodes:

Value

Description

Illegal

The printer is not in slip insertion mode.

ExtendedErrorCoverOpen

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

ExtendedErrorSlipEmpty

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

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