If you add the following script example (IE Engine) to the code of your webpage it will be printed automatically by accessing it.
It works without any user interaction if you configure SiteKiosk with “Print webpage as laid out on screen (without user interaction)” or “Automatically Print Largest Frame (without user interaction)” in the print settings of the configuration.
If you use the printer monitoring of SiteKiosk you also have to deactivate “User must confirm print jobs“ in the advanced settings of the printer monitoring.
window.external.InitScriptInterface();
function PrintExtWindow()
{
if (gk_Window.SiteKioskWebBrowser.WebBrowser.ReadyState == 4)
{
gk_Window.SiteKioskWebBrowser.Print();
gk_Window.Close();
window.clearInterval(gi_Interval);
}
}
var gk_Window = SiteKiosk.SiteKioskUI.CreateBrowserWindow();
gk_Window.SiteKioskWebBrowser.Navigate("your_webpage");
gk_Window.Move(0, 0, 0, 0);
window.setTimeout("gk_Window.Hide();", 1);
var gi_Interval = window.setInterval("PrintExtWindow();", 100);
Please consider that you have to give script permission to the URL resp. path of the html page you are using this script.