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

2/27/2008

Ends form-insertion processing.

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

Syntax

'Declaration
Public Overrides Sub EndInsertion
public override void EndInsertion ()
public:
virtual void EndInsertion () override
public void EndInsertion ()
public override function EndInsertion ()

Remarks

The PosPrinterBase class verifies that the application has the device opened, claimed, and enabled. PosPrinterBase validates the parameters and device state, and may throw PosControlException exceptions with the following ErrorCodes:

Value

Meaning

Other Values

A physical condition exists that would preclude the operation—for example, the cover is open, the paper is removed, and so on. A full list of these exceptions is provided under PosPrinter.EndInsertion.

Busy

PosPrinterProperties.State is set to ControlState.Busy.

Illegal

a) the CapSlpPresent property is set to false; or b) the printer is not in slip insertion mode.

If no exception is thrown, the PosPrinterBase class places the printer device in slip insertion mode, sets the SlpPrintSide property to Side1, and then calls EndInsertionImpl. If EndInsertionImpl returns true, the PosPrinterBase class increments the StatisticFormInsertionCount statistic and sets the PosPrinterProperties.SlpNearEnd and PosPrinterProperties.SlpEmpty properties to false. Otherwise, it throws an ExtendedErrorSlipEmpty exception.

If the service object throws an ExtendedErrorSlipEmpty exception and the CapSlpEmptySensor property is set to true, PosPrinterBase class sets the PosPrinterProperties.SlpEmtpy property to true.

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

PosPrinterBase Class
PosPrinterBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinter.EndInsertion Method
PosPrinter.CapSlpPresent Property
PosPrinter.CoverOpen Property
PosPrinter.CapSlpEmptySensor Property
PosPrinter.SlpEmpty Property