Share via


FiscalPrinter.ErrorEvent Event (POS for .NET v1.12 SDK Documentation)

2/27/2008

Notifies the application that a fiscal printer error has been detected and that a suitable response by the application is necessary to process the error condition.

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

Syntax

'Declaration
Public Event ErrorEvent As DeviceErrorEventHandler
public abstract event DeviceErrorEventHandler ErrorEvent
public:
virtual event DeviceErrorEventHandler^ ErrorEvent {
    void add (DeviceErrorEventHandler^ value) abstract;
    void remove (DeviceErrorEventHandler^ value) abstract;
}
/** @event */
public abstract void add_ErrorEvent (DeviceErrorEventHandler value)

/** @event */
public abstract void remove_ErrorEvent (DeviceErrorEventHandler value)

Remarks

ErrorEvent is queued when an error is detected and the POS for .NET state transitions into the error state. This event is not delivered until DataEventEnabled is true, so that proper application sequencing occurs.

If DeviceErrorEventArgs.ErrorCode property is set to Extended, then ErrorCodeExtended is set to one of the following values:

Value

Description

ExtendedErrorCoverOpen

The printer cover is open.

ExtendedErrorJournalEmpty

The journal station is out of paper.

ExtendedErrorReceiptEmpty

The receipt station is out of paper.

ExtendedErrorSlipEmpty

A form is not inserted in the slip station.

ExtendedErrorWrongState

The requested method could not be executed in the printer’s current state.

ExtendedErrorTechnicalAssistance

The printer has encountered a severe error condition. Calling for printer technical assistance is required.

ExtendedErrorClockError

The printer’s internal clock has failed.

ExtendedErrorMemoryFull

The printer memory has been exhausted.

ExtendedErrorMemoryDisconnected

The printer memory has been disconnected.

ExtendedErrorTotalsError

The Grand Total in working memory does not match the one in the EPROM.

ExtendedErrorBadItemQuantity

The quantity parameter is invalid.

ExtendedErrorBadItemAmount

The amount parameter is invalid.

ExtendedErrorBadItemDescription

The description parameter is either to long, contains illegal characters, or contains a reserved word.

ExtendedErrorReceiptTotalOverflow

The receipt total has overflowed.

ExtendedErrorBadVat

The VAT parameter is invalid.

ExtendedErrorBadPrice

The price parameter is invalid.

ExtendedErrorNegativeTotal

The printer’s computed total or subtotal is less than zero.

ExtendedErrorMissingDevices

A device required by local fiscal legislation is not connected. In some countries or regions, a set of peripheral devices (such as cash drawer and customer display) must be connected to the POS to use a fiscal printer. If any of these devices is not present, sales are not allowed.

DeviceErrorEventArgs.ErrorLocus is set to Output, indicating the error occurred while processing asynchronous output.

DeviceErrorEventArgs.ErrorResponse is preset to the default value of Retry. The application's error processing can also change the value of ErrorResponse to Clear to clear all buffered output data.

See Also

Reference

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace