Share via


PosPrinter.RecCurrentCartridge Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets or sets the receipt cartridge selected by the application.

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

Syntax

'Declaration
Public MustOverride Property RecCurrentCartridge As PrinterColors
public abstract PrinterColors RecCurrentCartridge { get; set; }
public:
virtual property PrinterColors RecCurrentCartridge {
    PrinterColors get () abstract;
    void set (PrinterColors value) abstract;
}
/** @property */
public abstract PrinterColors get_RecCurrentCartridge ()

/** @property */
public abstract void set_RecCurrentCartridge (PrinterColors value)
public abstract function get RecCurrentCartridge () : PrinterColors

public abstract function set RecCurrentCartridge (value : PrinterColors)

Remarks

Possible values are defined by the PrinterColors enumeration.

RecCurrentCartridge is set when the device is first enabled following the Open method.

The value of RecCurrentCartridge is must be one of the color cartridges specified by the CapRecColor property. (RecCurrentCartridge cannot be set to PrinterColors.Full.)

Setting RecCurrentCartridge may also update the RecCartridgeState property.

Accessing RecCurrentCartridge may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

One or more of the following conditions has occurred:

  • The CapRecPresent property is set to false. This indicates that there is no receipt station on this printer. In this case, RecCurrentCartridge should be set to PrinterColors.None;

  • RecCurrentCartridge was set to PrinterColors.None. However, the CapRecPresent property is set to true. This indicates that a receipt station is present;

  • RecCurrentCartridge was either set to a value not found in the PrinterColors enumeration or set to PrinterColors.Full. Both are invalid;

  • RecCurrentCartridge was set to a value not listed for the CapRecColor property.

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.RecCartridgeState Property
PrinterColors