# Printer Object The Printer object handles existing printers and print jobs. Members Table The following table lists the members provided by the Printer object.
Members
Collections | Description
Printers | Available printers.
Properties | Description
AllowPrinting | Whether printing is allowed.
DefaultPrinter | Name of the default printer.
InstalledPrinterCount | Number of printers installed in the Windows system.
ManagedPrinterCount | Number of printers managed by SiteKiosk.
Methods | Description
FindPrinter | Returns a printer object by name.
Events | Description
OnChangedJob | Fires when a print job property changed.
OnChangedPrinter | Fires when a printer property changed.
OnDeletedJob | Fires when a print job has been deleted.
OnDeletedPrinter | Fires when a printer has been deleted.
OnNewJob | Fires when a new print job has been created.
OnNewPrinter | Fires when a new printer is available.
OnPrinterActivityDetected | Fires when SiteKiosk detects a webbrowser print job.
OnShowPrintDialog | Fires when the SiteKiosk print dialog is displayed.
Remarks This object is available through the main object SiteKiosk. Use the Printer object to control existing printers and print jobs. To create a job, use the SiteKioskWindow.SiteKioskWebBrowser.Print method. Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file. Examples The following example returns whether printing is allowed.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteKiosk.Printer.AllowPrinting);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top