Micr.EndInsertion Method
2/27/2008
Ends the check 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 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 it calls the EndInsertion method to make sure 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 kind of processing, the EndInsertion and BeginInsertion methods return Success. However, the application should still use these methods to guarantee application portability across different MICR devices.
EndInsertion may cause a PosControlException exception to be thrown with the following ErrorCode:
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.
See Also
Reference
Micr Class
Micr Members
Microsoft.PointOfService Namespace
Micr.BeginInsertion Method
Micr.BeginRemoval Method
EndRemoval