Select your printer model

Parameters are refined by the selected printer.

addText


Adds a character print command to the command buffer.

Syntax

 
public void addText(String data) throws Epos2Exception

Parameter

data

Specifies the string to print.

Use the following escape sequences for a horizontal tab and line feed.

String

Description

\t

Horizontal tab (HT)

\h

Line feed (LF)

\\

Back slash

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

  • To print data other than text after printing text, feed a line or page.
    A line which does not end with a line feed will be discarded as unfixed data by the next sendData.
  • In the page mode, text is printed from the current print position with the base line dot of the characters as the standard.
 

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