PosPrinter.MarkFeed Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Uses the printer’s mark sensor for receipt paper.

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

Syntax

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

Parameters

  • type

Remarks

MarkFeed is performed synchronously if the AsyncMode property is set to FALSE, and asynchronously if AsyncMode is true.

If type is PrinterMarkFeeds.Takeup, the printer will feed the mark-sensed paper so that the present form is positioned to be manually removed by the operator.

If type is PrinterMarkFeeds.Cutter, the printer will feed the mark-sensed paper so that the present form is positioned to be cut off by the auto cutter. This will usually be followed by a call to the CutPaper method.

If type is PrinterMarkFeeds.CurrentTopOfForm, the printer will feed the mark-sensed paper (backward if it is necessary) so that the print head points to the top of the present form.

If type is PrinterMarkFeeds.NextTopOfForm, the printer will feed the mark-sensed paper so that the print head points to the top of the next form.

Before it calls this method, the application must open, claim, and enable the device.

MarkFeed may throw a PosControlException with the following ErrorCodes:

Value

Meaning

Busy

The printer is currently being used. (Can be returned only if AsyncMode is false.)

Illegal

One of the following conditions has occurred:

  • The receipt station does not exist (that is, the CapRecPresent property is set to false).

  • The receipt print station does not support the given mark-sensed paper-handling function (that is, the CapRecMarkFeed property is set to PrinterMarkFeeds.None).

  • The printer is currently in Insertion mode.

  • The printer is currently in Removal mode.

  • The value specified for type does not exist in the PrinterMarkFeeds enumeration.

Extended

ExtendedErrorCoverOpen: Printer cover is open. (Can be thrown only if AsyncMode is false.)

ExtendedErrorRecEmpty: Receipt paper is empty. (Can be thrown only if AsyncMode is false.)

ExtendedErrorRecCartridgeEmpty: A receipt cartridge is empty. (Can be thrown only if AsyncMode is false.)

ExtendedErrorRecCartridgeRemoved: A receipt cartridge is removed. (Can be thrown only if AsyncMode is false.)

ExtendedErrorRecHeadCleaning: A receipt head is being cleaned. (Can be thrown only if AsyncMode is false.)

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
PrinterMarkFeeds
CapRecPresent
CapRecMarkFeed