Select your printer model

Parameters are refined by the selected printer.

addHPosition


Adds horizontal character print start position to the command buffer.

Syntax

 
public void addHPosition(int x) throws Epos2Exception

Parameter

x

Specifies the horizontal print start position in dots.

Value

Description

Integer from 0 to 65535

Horizontal print start position (in dots)

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

  • 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 Android

Jump to the top