PosPrinterBase.MarkFeed Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Holds the type of mark-sensed paper handling available.

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

Syntax

'Declaration
Public Overrides Sub MarkFeed ( _
    type As PrinterMarkFeeds _
)
public override void MarkFeed (
    PrinterMarkFeeds type
)
public:
virtual void MarkFeed (
    PrinterMarkFeeds type
) override
public void MarkFeed (
    PrinterMarkFeeds type
)
public override function MarkFeed (
    type : PrinterMarkFeeds
)

Parameters

  • type
    Indicates the type of mark-sensed paper handling.

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

Busy

PosPrinterProperties.State is set to ControlState.Busy (applies only if the AsyncMode property has been set to false).

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.MarkFeed.

Illegal

a) the CapRecPresent property is set to false; b) the type of feed specified isn’t a valid PrinterMarkFeeds value; or c) the type of feed specified is not supported (CapRecMarkFeed doesn’t match the type specified);

If no exception is thrown, the PosPrinterBase class calls MarkFeedImpl.

MarkFeedImpl is performed synchronously if the AsyncMode property is set to false, otherwise, MarkFeedImpl is performed asynchronously.

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.MarkFeed Method
MarkFeedImpl
PrinterMarkFeeds Enumeration
PosPrinter.CapRecPresent Property
PosPrinter.CapRecMarkFeed Property
PosPrinter.CoverOpen Property