81
Chapter 4 ePOS-Print API
4
addTextVPosition method
Adds the vertical print start position of text to the command buffer. (in firmware Ver.3.0 and later)
Syntax
addTextVPosition(y);
Parameter
y:(Requiredparameter,Objecttype:Number)
Specifiestheverticalprintstartposition(indots).
Specifiesanintegerfrom0to65535.
Return value
Exception
Example
UsethisAPIfunctionbyinsertingitbetweenaddPageBegintoaddPageEnd.
Return value Object type
ePOS-Print Builder Object ePOS Builder
Exception Object type
Parameter " ... " is invalid Error
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
builder.addPageBegin();
builder.addTextVPosition(120);
builder.addPageEnd();
}
//-->
</script>
To set the print position at 120 dots from the top: