Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 171
Object type, var epos = new epson.CanvasPrintaddress, epos.timeout = 60000
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 171 highlights
Chapter 5 ePOS-Print Canvas API timeout property Specifies connection timeout. Object type Number Description Specifies connection timeout with ePOS-Print supported printer in milliseconds. When the transmission of print document by print method times out, onerror even is generated. Default value: 300000 (5 minutes) Example 5 171
171
Chapter 5
ePOS-Print Canvas API
5
timeout property
Specifies connection timeout.
Object type
Number
Description
Specifies connection timeout with ePOS-Print supported printer in milliseconds.
When the transmission of print document by print method times out, onerror even is generated.
Default value: 300000 (5 minutes)
Example
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var canvas = document.getElementById('myCanvas');
var epos = new epson.CanvasPrint(address);
epos.timeout = 60000;
epos.onreceive = function (res) { alert(res.success); };
epos.onerror = function (err) { alert(err.status); };
epos.print(canvas);
//-->
</script>