Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 159
ePOS-Print Canvas API Object, Constructor, CanvasPrint
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 159 highlights
Chapter 5 ePOS-Print Canvas API ePOS-Print Canvas API Object Prints a print image rendered in HTML5 Canvas and monitors the print result or the communication status. Constructor Constructor for an ePOS-Print Canvas API object. Creates a new ePOS-Print Canvas API object and initializes it. Syntax CanvasPrint(address); Parameter address : ( Optional parameter, Object type : String) Specifies the address property (URL of printer to be used for printing). The URL is as follows: http://[ePOS-Print supported TM printer]/cgi-bin/epos/service.cgi?devid=[device ID of printer to be used for printing]&timeout=[timeout time] Example 5 159
159
Chapter 5
ePOS-Print Canvas API
5
ePOS-Print Canvas API Object
Prints a print image rendered in HTML5 Canvas and monitors the print result or the communication status.
Constructor
Constructor for an ePOS-Print Canvas API object.
Creates a new ePOS-Print Canvas API object and initializes it.
Syntax
CanvasPrint
(address);
Parameter
address :
( Optional parameter, Object type
: String)
Specifies the address property (URL of printer to be used for printing).
The URL is as follows:
Example
http://[ePOS-Print supported TM printer]/cgi-bin/epos/service.cgi?devid=[device
ID of printer to be used for printing]&timeout=[timeout time]
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
function printCanvas() {
var epos = new epson.CanvasPrint(address);
}
//-->
</script>