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

 
- (int) addLogo:(long)key1 key2:(long)key2;

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

EPOS2_PARAM_DEFAULT

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

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Memory necessary for processing could not be allocated.

EPOS2_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 in advance and stored in the buffer.
  • 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 iOS

Jump to the top