![Cisco IEC 4610 User Manual Download Page 174](http://html.mh-extra.com/html/cisco/iec-4610/iec-4610_user-manual_65856174.webp)
B-6
Cisco Interactive Experience Client 4600 Series User Guide
Appendix B Printers
Printer Implementation
Example Usage of the global.printer Object
The following HTML document contains an example of global.printer usage.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>..:: global.printer test ::..</title>
<meta http􀀀equiv="Content-Type" content="text/html; charset=utf-8">
<style>
body
{
margin: 20px;
background􀀀color: #000000;
color: #eeeeee;
font􀀀weight: bold;
font􀀀family: Arial;
font􀀀size: 20px;
color: #eeeeee;
}
</style>
<script type="text/javascript">
var pageNumber;
function onFinished(ok)
{
document.getElementById("jobState").innerHTML = ok ? "Successfully" :
"Unsuccessfully";
}
function onPagePrinted(number)
{
pageNumber.innerHTML = number;
}
function init()
{
document.getElementById("name").innerHTML = global.printer.name;
document.getElementById("resolution").innerHTML = global.printer.resolution;
remove()
Instructs the browser to remove job object. Information about all
processed and finished jobs are kept in memory. If application uses
printing extensively, it may be necessary to free resources associated
with finished jobs manually using this method. Job object should never
be used after the call of this method.
finished()
Returns when the job is finished processing regardless if it was
successful or not
error()
Returns when error related to the job occurs
stateChanged()
Returns every time job state changes
Variable
Description