Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 135
ePOS-Print Object, Constructor, ePOSPrint
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 135 highlights
Chapter 4 ePOS-Print API ePOS-Print Object Sends a print document created using an ePOS-Print Builder object to control the printer and monitor the transmission result or the communication status. Constructor Constructor for an ePOS-Print object. Creates a new ePOS-Print object and initializes it. Syntax ePOSPrint(address); Parameter address : ( Optional parameter, Object type : String) Specifies the URL of the printer to send a print document to. The URL is as follows: http://[IP address of ePOS-Print supported TM printer]/cgi-bin/epos/ service.cgi?devid=[device ID of printer to be used for printing]&timeout=[timeout time] Example 135
135
Chapter 4
ePOS-Print API
4
ePOS-Print Object
Sends a print document created using an ePOS-Print Builder object to control the printer and monitor the
transmission result or the communication status.
Constructor
Constructor for an ePOS-Print object. Creates a new ePOS-Print object and initializes it.
Syntax
ePOSPrint
(address);
Parameter
address :
( Optional parameter, Object type
: String)
Specifies the URL of the printer to send a print document to.
The URL is as follows:
Example
http://[IP address of 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 sendMessage() {
var address = 'http://192.168.192.168/cgi-bin/epos/
service.cgi?devid=local_printer';
var epos = new epson.ePOSPrint(address);
}
//-->
</script>