PosPrinterBase.JrnCurrentCartridge Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Holds the currently selected journal cartridge.

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

Syntax

'Declaration
Public Overrides Property JrnCurrentCartridge As PrinterColors
public override PrinterColors JrnCurrentCartridge { get; set; }
public:
virtual property PrinterColors JrnCurrentCartridge {
    PrinterColors get () override;
    void set (PrinterColors value) override;
}
/** @property */
public PrinterColors get_JrnCurrentCartridge ()

/** @property */
public void set_JrnCurrentCartridge (PrinterColors value)
public override function get JrnCurrentCartridge () : PrinterColors

public override function set JrnCurrentCartridge (value : PrinterColors)

Remarks

PosPrinterBase class verifies that the device has been opened, claimed, and enabled, then retrieves or sets the value of PosPrinterProperties.JrnCurrentCartridge.

JrnCurrentCartridge is initialized to PrinterColors.None by the PosPrinterProperties class.

Setting JrnCurrentCartridge can cause a PosControlException exception to be thrown with the following ErrorCode:

Value

Meaning

Illegal

  • The CapJrnPresent property is set to false, indicating that there is no receipt station on this printer. In this case, JrnCurrentCartridge should be set to PrinterColors.None;

  • JrnCurrentCartridge was set to PrinterColors.None, but the CapJrnPresent property is set to true, indicating that a receipt station is present;

  • JrnCurrentCartridge was either set to a value not found in the PrinterColors enumeration or set to PrinterColors.Full, both of which are invalid;

  • JrnCurrentCartridge was set to a value not listed for the CapJrnColor 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

PosPrinterBase Class
PosPrinterBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinter.JrnCurrentCartridge Property