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

2/27/2008

If true, the journal paper is low.

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

Syntax

'Declaration
Public Overrides ReadOnly Property JrnNearEnd As Boolean
public override bool JrnNearEnd { get; }
public:
virtual property bool JrnNearEnd {
    bool get () override;
}
/** @property */
public boolean get_JrnNearEnd ()
public override function get JrnNearEnd () : boolean

Remarks

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

JrnNearEnd is initialized to false by the PosPrinterProperties class and should be kept current by the service object while the printer device is enabled. If the service object sets JrnNearEnd to true and the CapJrnNearEndSensor property is set to false, the PosPrinterProperties class may throw PosControlException exceptions under the following conditions, with the specified ErrorCodes:

Value

Meaning

Illegal

The service object has set the JrnNearEnd property to true, indicating that the low-paper sensor has detected a growing scarcity of printer paper, and set the CapJrnNearEndSensor property to false, which indicates that there is no low-paper sensor.

Otherwise, if the value of JrnNearEnd changes, the PosPrinterProperties class queues the appropriate StatusUpdateEvent event, notifying the application of the change.

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.JrnNearEnd Property