Select your printer model

Parameters are refined by the selected printer.

addLogo


Adds a NV logo print command to the command buffer.

Prints the logo registered in the NV memory of the printer.

Syntax

 
public void addLogo(int key1, int key2) throws Epos2Exception

Parameter

key1

Specifies the key code 1 of the NV logo.

Value

Description

Integer from 1 to 255

Key code 1 of the NV logo

key2

Specifies the key code 2 of the NV logo.

Value

Description

Integer from 1 to 255

Key code 2 of the NV logo

Printer.PARAM_DEFAULT

Specify this for the printers that do not support key code 2.

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
  • For how to register the NV logo, refer to the Technical Reference Guide of the printer.
  • The page mode does not support multi-gradation printing. Multi-gradation graphics can be printed in the standard mode only.
  • The NV logo specified by this API is printed with the color setting specified by addTextStyle buffered in advance.
  • TM-U220 and TM-U220II, TM-U330 use only the key1 parameter, however, you need to set "Printer.PARAM_DEFAULT" as the key2 parameter for those printers since an empty key2 parameter causes an error.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for Android

Jump to the top