Skip to content

ResetPrinter

Description

Performs a hardware reset of the printer.

Syntax

  
    ErrorCode ResetPrinter()
  

Return value

Returns an error code. See "Error Code List" for details of the error code.

Remarks

    • Performs hardware reset of the printer using the communication protocol (without using printer commands).
    • After called this API, wait a few seconds to send the data. If data transmission is performed right after calling this API, it may cause the data to be missed.
    • When this API is called, the following APIs are aborted.
      • DirectIOEx
      • DirectSendRead
    • During the call of this API, the printer status response will be "No response". See "Printer Status List" for details of the printer status.
    • If this API is executed with a Bluetooth connection when the printer does not accept data, this API will succeed. However, the reset is not executed until the printer is ready to print. Until then, data transmission cannot be performed.