Share via


PosPrinterBase.CapJrnColor Property

2/27/2008

Indicates available journal color cartridges.

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

Syntax

'Declaration
Public Overrides ReadOnly Property CapJrnColor As PrinterColors
public override PrinterColors CapJrnColor { get; }
public:
virtual property PrinterColors CapJrnColor {
    PrinterColors get () override;
}
/** @property */
public PrinterColors get_CapJrnColor ()
public override function get CapJrnColor () : PrinterColors

Remarks

PosPrinterBase class verifies that the device has been opened, then retrieves the value of PosPrinterProperties.CapJrnColor.

CapJrnColor is initialized to PrinterColors.None by the PosPrinterProperties class. The service object should update CapJrnColor to an appropriate value in its Open method. When the service object sets CapJrnColor, PosPrinterProperties may throw PosControlException exceptions with the following values:

Value

Meaning

Illegal

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

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

  • CapJrnColor was set to a value not found in the PrinterColors enumeration.

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.CapJrnColor Property
PrinterColors Enumeration