Select your printer model

Parameters are refined by the selected printer.

addHLine method


Draws a horizontal ruled line and adds a horizontal ruled line print command to the command buffer.

Syntax

 
addHLine(x1, x2, style);

Parameter

x1

Value

Description

Integer from 0 to 65535

Specifies the start position to draw a horizontal ruled line in dots.

x2

Value

Description

Integer from 0 to 65535

Specifies the end position to draw a horizontal ruled line in dots.

style

Constant

Description

LINE_THIN

Solid line: Fine

LINE_MEDIUM

Solid line: Middle

LINE_THICK

Solid line: Thick

LINE_THIN_DOUBLE

Double line: Fine

LINE_MEDIUM_DOUBLE

Double line: Middle

LINE_THICK_DOUBLE

Double line: Thick

undefined

Solid line: Fine

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • This API does not work in the page mode.
  • Use addPageLine method to draw a horizontal ruled line in the page mode.
 

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