Share via


Micr.EndInsertion Method

Ends check insertion processing.

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

Usage

'Usage
Dim micr1 As Micr
micr1.EndInsertion()

Syntax

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

Remarks

When called, the MICR is taken out of check insertion mode. If a check is detected in the device, a successful status of Success is returned to the application. If no check is present, an extended error status ExtendedErrorNoCheck is returned. Upon completion of EndInsertion, the check is read by the MICR device, and data is available as soon as the DataEventEnabled property is set to TRUE. This allows an application to prompt the user before calling EndInsertion to ensure that the form is correctly positioned.

EndInsertion is paired with the BeginInsertion method for controlling check insertion. For MICR devices that do not require this sort of processing, EndInsertion and BeginInsertion return Success. However, the application should still use these methods to ensure application portability across different MICR devices.

EndInsertion returns void if successful, and can throw the following exceptions:

Value

Meaning

Illegal

The printer is not in check insertion mode.

ExtendedErrorNoCheck

The device was taken out of insertion mode without a check 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

Micr Class
Micr Members
Microsoft.PointOfService Namespace
BeginInsertion
BeginRemoval
EndRemoval