Select your printer model

Parameters are refined by the selected printer.

send method


Sends data in the command buffer to the printer.

The print job ID can be specified.

Syntax

 
send();
 
send(printjobid);

Parameter

printjobid

Value

Description

String

Alphanumeric characters, underscore, hyphen, and period in 1 to 30 digits can be used.

Sample program

Send data by specifying the print job ID.

 
 var printjobid = 'ABC123';

 printer.addText('Hello, World!\n');
 printer.addCut();
 printer.onreceive = function (res) { alert(res.printjobid); };
 printer.onerror = function (err) { alert(err.status); };
 printer.send(printjobid);

Supplementary explanation

  • The execution result of the send method is passed to the callback function of onreceive event.
  • If you disable the eposPrint property and enable the forced transmission mode (force property) and execute the send method, the forced transmission mode will be disabled after the data is sent.
  • The specification function of the print job ID can be used in the TM-i series/TM-DT series.
 

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