54
addTextPosition
Adds the horizontal print start position of text to the command buffer.
Syntax
public void addTextPosition(int x) throws EposException
Parameter
x : Specifies the horizontal print start position (in dots).
Specifies an integer from 0 to 65535.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To set the print position at 120 dots from the left end:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextPosition(120);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}