Select your printer model

Parameters are refined by the selected printer.

selectPaperType


Specifies a print method.

Syntax

 
public void selectPaperType(int paperType) throws Epos2Execption

Parameter

paperType

Specifies a print method.

Value

Description

HybridPritner.PAPER_TYPE_RECEIPT

Receipt printing

HybridPrinter.PAPER_TYPE_SLIP

Slip printing

HybridPrinter.PAPER_TYPE_ENDORSE

Endorsement printing

HybridPrinter.PAPER_TYPE_VALIDATION

Validation printing

HybridPrinter.PARAM_DEFAULT

Specifies the default (receipt printing).

Exception

When the process fails, Epos2Exception with one of the following error value occurs.

Error status

Description

ERR_PARAM

An invalid parameter was specified.

ERR_ILLEGAL

This API was called while no communication had been started.

This API was called while waiting for paper insertion.

This API was called while paper has already been inserted.

This API was called while transmitting data.

This API was called while waiting for paper removal.

ERR_CONNECT

Communication failed.

EPOS2_ERR_UNSUPPORTED

A print method not supported by the printer was specified.

Supplementary explanation

  • This API is not executed on the main thread. Execute it on the sub-thread.
  • The print method specified by this API affects waitInsertion and sendData APIs.
 

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