Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 81
addTextPosition method, addTextPosition
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 81 highlights
Chapter 4 ePOS-Print API addTextPosition method Adds the horizontal print start position of text to the command buffer. Syntax addTextPosition(x); Parameter x: ( Required parameter, Object type : Number) Specifies the horizontal print start position (in dots). Specifies an integer from 0 to 65535. Return value Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error Example To set the print position at 120 dots from the left end: 4 81
81
Chapter 4
ePOS-Print API
4
addTextPosition method
Adds the horizontal print start position of text to the command buffer.
Syntax
addTextPosition
(x);
Parameter
x :
( Required parameter, Object type : Number)
Specifies the horizontal print start position (in dots).
Specifies an integer from 0 to 65535.
Return value
Exception
Example
Return value
Object type
ePOS-Print Builder Object
ePOS Builder
Exception
Object type
Parameter " ... " is invalid
Error
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
builder.addTextPosition(120);
}
//-->
</script>
To set the print position at 120 dots from the left end: