Share via


PosPrinter.SlpCurrentCartridge Property

2/27/2008

Gets or sets the slip cartridge the application wants to use.

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

Syntax

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

/** @property */
public abstract void set_SlpCurrentCartridge (PrinterColors value)
public abstract function get SlpCurrentCartridge () : PrinterColors

public abstract function set SlpCurrentCartridge (value : PrinterColors)

Remarks

Possible values are defined by the PrinterColors enumeration.

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

Setting SlpCurrentCartridge may also update the SlpCartridgeState property.

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

Value

Meaning

Illegal

One or more of the following conditions has occurred:

  • The CapSlpPresent property is set to false. This indicates that there is no slip station on this printer. In this case, SlpCurrentCartridge should be set to PrinterColors.None.

  • SlpCurrentCartridge was set to PrinterColors.None. However, the CapSlpPresent property is set to true. This indicates that a slip station is present.

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

  • SlpCurrentCartridge was set to a value not listed for the CapSlpColor 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.CapSlpColor Property
PosPrinter.SlpCartridgeState Property
PrinterColors