addCommand method
Adds commands to the command buffer. Sends ESC/POS commands.
ESC/POS commands are not made public. For details, contact the dealer.
Syntax
addCommand(data);
Parameter
data :
(Optional parameter, Object type : String)
Specifies ESC/POS command as a character string.
Return value
ePOS-Print Builder Object
Exception
Parameter " ... " is invalid
Example
<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>
132
Return value
Exception
Object type
ePOS Builder
Object type
Error