Select your printer model

Parameters are refined by the selected printer.

addHPosition


Adds horizontal character print start position to the command buffer.

Syntax

 
- (int) addHPosition:(long)x;

Parameter

x

Specifies the horizontal print start position in dots.

Value

Description

Integer from 0 to 65535

Horizontal print start position (in dots)

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

  • Calling this API causes the printer positioned at "other than the beginning of the line."
    This is also true even if 0 is set to "x."
  • After executing this API, addTextAlign and addTextRotate cannot be used.
  • Setting of this API is also applied to the barcode/2D symbol/raster image/NV logo.
  • The setting of this API is applied to each line (Or to each barcode, 2D symbol, raster image, or NV logo).
    If you want to apply the setting to multiple lines, set this API to each of the lines.
 

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