OnShowPrintDialog Event



 
Fires when the SiteKiosk print dialog is displayed.


Syntax

    SiteKiosk.Printer.OnShowPrintDialog = handler
    
Parameters Return Value
    Must return a Boolean value that specifies whether to cancel the print request.
Remarks
    Whether the largest frame is printed automatically, the standard Internet Explorer print dialog is displayed, or the SiteKiosk print dialog is displayed has been configured in the SiteKiosk Wizard.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example prints 2 copies of the document that the user requested to print.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Printer.OnShowPrintDialog = OnShowPrintDialog;
    function OnShowPrintDialog(SKBrowser, options)
    {
       options.Copies = 2;
       return false;
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top