Select your printer model

Parameters are refined by the selected printer.

addVLineBegin


Adds a command to start drawing a vertical ruled line to the command buffer.

Starts drawing a vertical line.

Syntax

 
public void addVLineBegin(int x, int lineStyle, int[] lineId) throws Epos2Exception

Parameter

x

Specifies the start position to draw a vertical ruled line (in dots).

Value

Description

Integer from 0 to 65535

Start position to draw a vertical ruled line (in dots)

lineStyle

Specifies the ruled line type.

Value

Description

Printer.LINE_THIN

Solid line: Fine

Printer.LINE_MEDIUM

Solid line: Middle

Printer.LINE_THICK

Solid line: Thick

Printer.LINE_THIN_DOUBLE

Double line: Fine

Printer.LINE_MEDIUM_DOUBLE

Double line: Middle

Printer.LINE_THICK_DOUBLE

Double line: Thick

Printer.PARAM_DEFAULT

Specifies the default (Solid line: Fine).

lineId

Returns the ID of the ruled line printed by this API.

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

  • This API cannot be used in the page mode.
  • Use addPageLine to draw a vertical ruled line in the page mode.
  • Drawing of the vertical ruled line continues until stopped by the addVLineEnd API.
  • Use this API with the addVLineEnd API.
 

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