Addtextalign - Epson TM-T88V User Manual

Epos-print sdk for android
Hide thumbs Also See for TM-T88V:
Table of Contents

Advertisement

addTextAlign

Adds the text alignment setting to the command buffer.
This API setting also applies to barcodes/2D-Code.
When the page mode is selected for the print mode, use
API to set the alignment.
Syntax
public void addTextAlign(int align) throws EposException
Parameter
 align :
Specifies the text alignment.
Builder.ALIGN_LEFT (default)
Builder.ALIGN_CENTER
Builder.ALIGN_RIGHT
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
Example
To set alignment to the center:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextAlign(Builder.ALIGN_CENTER);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
Set value
Alignment to the left
Alignment to the center
Alignment to the right
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
Chapter 4 API Reference
addPagePosition (p.76)
instead of this
Description
Description
4
43

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents