68
addTextRotate method
Adds the text rotation setting to the command buffer.
Syntax
addTextRotate(rotate);
Parameter
rotate:(Requiredparameter,Objecttype:Boolean)
Specifieswhethertorotatetext.
Return value
Exception
Example
•ThisAPIsettingalsoappliestobarcodes/twodimensionalsymbols.
•Whenusingthestandardmode,specifyaddTextAligninʺPositionatthebeginningoflinesʺ.
•Inthepagemode,addTextAlignmethodspecificationcannotbeused.
•Whenthepagemodeisselectedfortheprintmode,tosettextrotation,usethe
addPageDirectionmethod
(p.111)insteadofthisAPIfunction.
Setting Description
true or 11 Specifies rotated printing of text.
false or 0 (default) Cancels rotated printing of text.
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.addTextRotate(true);
}
//-->
</script>
To set text rotation: