132
addCommand method
Adds commands to the command buffer. Sends ESC/POS commands.
Syntax
addCommand(data);
Parameter
data: (Optionalparameter,Objecttype:String)
SpecifiesESC/POScommandasacharacterstring.
Return value
Exception
Example
ESC/POScommandsarenotmadepublic.Fordetails,contactthedealer.
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();
var doc = builder.addCommand('ABC\x44\x45\x0a');
}
//-->
</script>