Select your printer model

Parameters are refined by the selected printer.

PrinterControl XML


These XMLs are used to control print operations of a printer. <epos-print> is included in the child element printdata of the <type> element print, while <response> is included in the child element resultdata of the <type> element onxmlresult.

<epos-print> and <response> can be used with the following <type> elements.

Creating print document

These XMLs request the printer to execute a print function specified with <epos-print> and acquires the execution result with <response>.

XML document

Child element

Function

<epos-print>

<text>

Prints text.

<feed>

Paper feed

<image>

Prints a raster image.

<logo>

Prints the NV logo.

<barcode>

Prints a barcode.

<symbol>

Prints a 2D symbol.

<hline>

Prints a horizontal ruled line.

<vline-begin>

Starts printing a vertical ruled line.

<vline-end>

Ends printing a vertical ruled line.

<page>

Switches to the page mode

<area>

Defines the print area in the page mode.

<direction>

Specifies the print direction in the page mode.

<position>

Specifies the print position in the page mode.

<line>

Draws a line in the page mode.

<epos-print>

<rectangle>

Draws a shape in the page mode.

<cut>

Cuts the sheet.

<pulse>

Kicks the drawer.

<sound>

Sounds the buzzer.

<command>

Inserts a command.

<layout>

Sets the page layout.

<recovery>

Recovers from a recoverable error.

<reset>

Resets the printer.

<batch-begin>

Starts the batch normal print mode.

<batch-end>

Ends the batch normal print mode.

<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 child elements that can be used in each mode are described in the table below.

XML document

Child element

Standard mode

Page mode

Batch normal print mode

Batch rotate print mode

<epos-print>

<text>

<feed>

<epos-print>

<image>

<logo>

<barcode>

<symbol>

<hline>

-

<vline-begin>

-

<vline-end>

-

<page>

-

-

-

<area>

-

-

-

<direction>

-

-

-

<position>

-

-

-

<line>

-

-

-

<rectangle>

-

-

-

<cut>

-

-

-

<pulse>

-

-

-

<sound>

-

-

-

<command>

<layout>

-

<recovery>

-

-

-

<reset>

-

-

-

<batch-begin>

-

-

-

<batch-end>

-

-

<rotate-begin>

-

-

-

<rotate-end>

-

-

<response>

List of support per print method

Child element

Print method

Receipt

Slip

Endorsement

Endorsement (40cpl)

Validation

<text>

<feed>

<image>

-

-

-

-

<logo>

-

-

-

-

<barcode>

-

-

-

-

<symbol>

-

-

-

-

<hline>

-

-

-

-

<vline-begin>

-

-

-

-

<vline-end>

-

-

-

-

<page>

-

-

<area>

-

-

<direction>

-

-

<position>

-

-

<line>

-

-

-

<rectangle>

-

-

-

<cut>

-

-

-

-

<pulse>

<sound>

-

-

-

-

<command>

<layout>

-

-

-

-

<recovery>

<reset>

List of child element default values

The default values of the child elements are listed below.

These values are effective before executing a child element defined on the printer device.

Child 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”

<text>

x

“0”

y

“21”

align

“left”

rotate

“false” / “0”

linespc

Depends on the 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

Depends on the 2D symbol type.

Refer to <symbol> for details.

width

hight

size

align

“left”

rotate

“false” / “0”

<area>

x

“0”

y

“0”

width

Depends on the 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-Device XML includes patented or patent pending functions. The contents must not be disclosed to third parties.


ePOS-Device XML

Jump to the top