Select your printer model

Parameters are refined by the selected printer.

XML for Controlling Printer


Route element

Element

Function

<epos-print>

<text>

Prints a text

<feed>

Feeds paper

<image>

Prints a raster image

<logo>

Prints an NV logo

<barcode>

Prints a barcode

<symbol>

Prints a 2D symbol

<hline>

Prints a horizontal line

<vline-begin>

Starts to print a vertical line

<vline-end>

Finishes to print a vertical line

<page>

Page mode

<area>

Specifies a print area for the page mode

<direction>

Specifies the printing direction for the page mode

<position>

Specifies a position to start printing for the page mode

<line>

Prints a line in the page mode

<rectangle>

Prints a rectangle in the page mode

<cut>

Cuts paper

<pulse>

Drawer kick-out

<sound>

Sounds a buzzer

<command>

Inserts a command

<layout>

Paper settings

<recovery>

Recovers from an error

<reset>

Resets the printer

<batch-begin>

Starts the batch normal print mode

<batch-end>

Ends the batch normal print mode

<epos-print>

<rotate-begin>

Starts the batch rotate print mode

<rotate-end>

Ends the batch rotate print mode

<response>

Acquires the execution result.

The print mode includes the standard mode, page mode, batch normal print mode, and the batch rotate print mode.

  • Standard mode
  • Prints data line by line. Line spacing is automatically adjusted according to character size, image size, and barcode height. Suitable for printing receipts whose print length varies by print content.

  • Page mode
  • Prints page by page. Prints characters, images, and/or barcodes on a single page that is defined as a print area.
    To print in the page mode, switch to the page mode using <page>.

  • Batch normal print mode
  • This is a print mode in which the range of the print data (such as characters, images, barcodes, etc.) is set, and the print data in the set range is compiled, and then printed.

    Unlike the standard mode, printing starts after the entire print data has been received.

    When performing the processing in the batch normal print mode, start the batch normal print processing with <batch-begin>, and end the batch normal print processing with <batch-end>.

  • Batch rotate print mode
  • This is a print mode in which the range of the print data (such as characters, images, barcodes, etc.) is set, the print data in the set range is compiled, inverted, and then printed.

    When performing the processing in the batch rotate print mode, start the batch rotate print processing with <rotate-begin>, and end the batch rotate print processing with <rotate-end>.

The elements that can be used in each mode are described in the table below.

Route element

Element

Standard mode

Page mode

Batch normal print mode

Batch rotate print mode

<epos-print>

<text>

<feed>

<image>

<logo>

<barcode>

<symbol>

<hline>

-

<vline-begin>

-

<vline-end>

-

<page>

-

-

-

<area>

-

-

-

<direction>

-

-

-

<epos-print>

<position>

-

-

-

<line>

-

-

-

<rectangle>

-

-

-

<cut>

-

-

-

<pulse>

-

-

-

<sound>

-

-

-

<command>

<layout>

-

<recovery>

-

-

-

<reset>

-

-

-

<batch-begin>

-

-

-

<batch-end>

-

-

<rotate-begin>

-

-

-

<rotate-end>

-

-

<response>

The table below shows the default for each of the elements.

The default is a factory default configured on the printer.

Element

Attribute

Default value

<text>

lang

"en"

font

"font_a"

smooth

"false" / "0"

dw

"false" / "0"

dh

"false" / "0"

width

"1"

height

"1"

reverse

"false" / "0"

ul

"false" / "0"

em

"false" / "0"

color

"color_1"

x

"0"

y

"21"

align

"left"

rotate

"false" / "0"

<text>

linespc

The value differs by printer model.

For details, refer to Printer-specific Support Information.

<feed>

linespc

<image>

color

"color_1"

align

"left"

mode

"mono"

<logo>

align

"left"

<barcode>

hri

"none"

font

"font_a"

width

"3"

height

"162"

align

"left"

rotate

"false" / "0"

<symbol>

level

The value differs by type of 2D symbol.

For details, refer to <symbol>.

width

hight

size

align

"left"

rotate

"false" / "0"

<area>

x

"0"

y

"0"

width

The value differs by printer model.

For details, refer to Printer-specific Support Information..

height

<direction>

dir

"left_to_right"

<position>

x

"0"

y

"21"

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ePOS-Print XML includes patented or patent pending functions. The contents must not be disclosed to third parties.


Jump to the top