Skip to content

OpenMonPrinter

Description

Starts using the .NET API.

*Syntax

  
    ErrorCode OpenMonPrinter( OpenType type, string name )
  

Parameter

type

Open type
OpenType.TYPE_PRINTER (fixed)

name

Name of the printer that uses the .NET API
Specify the printer name (friendly name).

Return value

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

Remarks

    • It can be opened up to 8 instances at the same time within 1 process combining each class in .NET API.
    • When the .NET API is no longer used, be sure to call CloseMonPrinter.
    • Set the connection destination of the printer driver to USB, or serial (COM port of Bluetooth device).
    • This API succeeds even when the printer is not connected or the printer power is turned off.