Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 161
Exception, var epos = new epson.CanvasPrintaddress
![]() |
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 161 highlights
Chapter 5 ePOS-Print Canvas API Exception Exception Parameter " ... " is invalid XMLHttpRequest is not supported Canvas is not supported Object type Error Error Error Example To print Canvas(ID='myCanvas'): To specify a print job ID from the application: 161
![](/manual_guide/products/epson-p60ii-eposprint-api-user-s-manual-tmi-firmware-41-a0c01f3/161.png)
161
Chapter 5
ePOS-Print Canvas API
5
Exception
Example
Exception
Object type
Parameter " ... " is invalid
Error
XMLHttpRequest is not supported
Error
Canvas is not supported
Error
To print Canvas(ID=’myCanvas’):
<script type="text/javascript" src=”epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
function printCanvas() {
var canvas = document.getElementById('myCanvas');
var epos = new epson.CanvasPrint(address);
epos.onreceive = function (res) { alert(res.success); };
epos.onerror = function (err) { alert(err.status); };
epos.print(canvas);
}
//-->
</script>
To specify a print job ID from the application:
<script type="text/javascript" src=”epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
function printCanvas() {
var printjobid = 'ABC123';
var canvas = document.getElementById('myCanvas');
var epos = new epson.CanvasPrint(address);
epos.onreceive = function (res) { alert(res.success); };
epos.onerror = function (err) { alert(err.status); };
epos.print(canvas, printjobid);
}
//-->
</script>