Select your printer model

Parameters are refined by the selected printer.

selectPaperType


Specifies a print method.

Syntax

 
- (int) selectPaperType:(int)paperType;

Parameter

paperType

Specifies a print method.

Value

Description

EPOS2_PAPER_TYPE_RECEIPT

Receipt printing

EPOS2_PAPER_TYPE_SLIP

Slip printing

EPOS2_PAPER_TYPE_ENDORSE

Endorsement printing

EPOS2_PAPER_TYPE_VALIDATION

Validation printing

EPOS2_PARAM_DEFAULT

Specifies the default (receipt printing).

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_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.

EPOS2_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 iOS

Jump to the top