45
Chapter 4 API Reference
4
addTextRotate
Adds the text rotation setting to the command buffer.
Syntax
public void addTextRotate(int rotate)
throws EposException
Parameter
rotate : Specifies whether to rotate text.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
This API setting also applies to barcodes/two dimensional symbols.
When the page mode is selected for the print mode, to set text rotation, use the addPageDirection
(p.74) instead of this API function.
Set value Description
Builder.TRUE Specifies rotated printing of text.
Builder.FALSE (default) Cancels rotated printing of text.
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To set text rotation:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextRotate(Builder.TRUE);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}