B-7
Cisco Interactive Experience Client 4600 Series User Guide
Appendix B Printers
Printer Implementation
document.getElementById("state").innerHTML = global.printer.state;
pageNumber = document.getElementById("pageNumber");
global.printer.finished.connect(onFinished);
global.printer.pagePrinted.connect(onPagePrinted);
// global.printer.print("http://www2.lauterbach.com/doc/rtosqnx.pdf");
//
global.printer.print("http://is1.vladstudio.com/jpg_low/1600x1200/vladstudio_gecko_160
0x1200
.jpg");
global.printer.print("http://lenta.ru/news/2011/09/20/c27j/");
}
</script>
</head>
<body onload="init()">
<table cellpadding="2" cellspacing="0" border="1" align="center" width="50%">
<tr>
<td>Printer name</td>
<td id="name"></td>
</tr>
<tr>
<td>Resolution</td>
<td id="resolution"></td>
</tr>
<tr>
<td>State</td>
<td id="state"></td>
</tr>
<tr>
<td>Page printed</td>
<td id="pageNumber"></td>
</tr>
<tr>
<td>Job finished</td>
<td id="jobState"></td>
</tr>
</table>
</body>
</html>
Best Practices and Tips
•
Make sure to have the location of the file as a URL.
•
Change the URL in the above HTML to print another file.
•
Copy the above contents to an HTML file and transfer the file to a web server from where it can be
accessed.
•
The printer must be connected to the IEC. Reboot the IEC after connecting the printer.