Share via


FiscalPrinter.ResetPrinter Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Forces the printer to return to the Monitor state.

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

Syntax

'Declaration
Public MustOverride Sub ResetPrinter
public abstract void ResetPrinter ()
public:
virtual void ResetPrinter () abstract
public abstract void ResetPrinter ()
public abstract function ResetPrinter ()

Remarks

This forces any interrupted operations to be canceled and closed. ResetPrinter must be invoked when the printer is not in a Monitor state after a successful call to the ClaimDevice method and successful setting of the DeviceEnabled property to true. This typically happens if a power failure occurs during a fiscal operation.

Calling ResetPrinter does not close the printer; that is, it does not force a Z report to be printed.

The service object handles this command as follows:

  • If the printer is in FiscalReceipt, FiscalReceiptTotal, or FiscalReceiptEnding state, the receipt is ended without updating any registers.

  • If the printer is in a nonfiscal or training state, the printer exits that state.

ResetPrinter is always performed synchronously.

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

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace