PosPrinter.EndRemoval Method
2/27/2008
Ends form-removal processing.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub EndRemoval
public abstract void EndRemoval ()
public:
virtual void EndRemoval () abstract
public abstract void EndRemoval ()
public abstract function EndRemoval ()
Remarks
When it is called, the printer is taken out of form-removal or ejection mode.
If a form is present, an Extended exception is thrown, by using the constant ExtendedErrorSlpForm.
EndRemoval is paired with the BeginRemoval method for controlling form removal. The application can call EndRemoval immediately after a successful BeginRemoval to use printer sensors to determine when the form has been removed. Alternatively, the application can prompt the user and wait for a key press before it calls EndRemoval.
Before it calls this method, the application must open, claim, and enable the device.
EndRemoval may throw a PosControlException with the following ErrorCodes:
Value |
Meaning |
Busy |
The printer is currently being used. |
Illegal |
The printer is not in removal mode (the BeginRemoval method has not been called before calling EndRemoval). |
Extended |
ExtendedErrorSlpForm: The device was taken out of removal mode while a form was still present. |
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.EndInsertion Method
PosPrinter.BeginRemoval Method