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.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
Example
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();
}
54
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
Description