Select your printer model

Parameters are refined by the selected printer.

addText


Adds a character print command to the command buffer.

Syntax

 
- (int) addText:(NSString *)data;

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)

\n

Line feed (LF)

\\

Back slash

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

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

Jump to the top