Example Usage Of The Global.printer Object - Cisco Interactive Experience Client 4600 Series User Manual

Hide thumbs Also See for Interactive Experience Client 4600 Series:
Table of Contents

Advertisement

Printer Implementation
Variable
remove()
finished()
error()
stateChanged()

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">
Cisco Interactive Experience Client 4600 Series User Guide
B-6
<html>
<head>
<title>..:: global.printer test ::..</title>
<meta http&#1048576;equiv="Content-Type" content="text/html; charset=utf-8">
<style>
body
{
margin: 20px;
background&#1048576;color: #000000;
color: #eeeeee;
font&#1048576;weight: bold;
font&#1048576;family: Arial;
font&#1048576;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;
Description
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.
Returns when the job is finished processing regardless if it was
successful or not
Returns when error related to the job occurs
Returns every time job state changes
Appendix B
Printers

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Iec 4632Iec 4610

Table of Contents