Select your printer model

Parameters are refined by the selected printer.

addText method


Adds characters to print to the command buffer.

Syntax

 
addText(data);

Parameter

data

Value

Description

String

Specifies characters to print as a string.

Use the following escape sequences for a horizontal tab, line feed, and back slash:

String

Description

\t

Horizontal tab (HT)

\h

Line feed (LF)

\\

Back slash

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • To print data other than text after printing text using the addText method, feed a line or page.
  • 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 JavaScript

Jump to the top