Support Request: Can not print iframe mode "Start Once"

Description

Hello.

I use this Object model script: http://www.provisio.com/en-US/Downloads/Default.aspx?GroupId=6&__utma=1.764552611.1426758801.1426772199.1426844132.6&__utmb=1.0.10.1426844131&__utmc=1&__utmx=-&__utmz=1.1426844132.6.6.utmcsr=yandex|utmccn=(organic)|utmcmd=organic&__utmv=-&__utmk=165624255#ID60

This script prints a frame in Internet explorer without having to run the site kiosk, if I run this code to "Start Once" mode, a run that takes place not print iframe a page is called from frame.

what am I doing wrong?

Réponse: (3)

Re: Can not print iframe mode "Start Once" 23/03/2015 08:51
Hello,

Please note that the ActiveX settings in the security options of Internet Explorer should be set to low in order for this example to work properly. This, however, creates a potential security risk to the system.

You also have to edit the UnsafeActiveXCtrls.xml file located in the XML subfolder of the SiteKiosk directory, and removing the clsid from the WebBrowser control.

Furthermore please note that the scripts on this page are merely meant as examples without further support.
Please understand that our free support cannot offer you any assistance with creating your own code or customizing the skin files (apart from the detailed SiteKiosk and SiteKiosk Object Model documentation).
- General Information about customizing SiteKiosk: http://www.sitekiosk.com/en-US/SiteKiosk/SiteSkin.aspx
- SiteKiosk help: http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?customization_%28site_skin%29.htm
- SiteKiosk Object model help: http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm
If you need further assistance in creating individual coding solutions you can contact us via e-mail that we may find a solution against payment for your needs.
(Or maybe one of the forum visitors who have already worked on this kind of code can give you some help.)

In case you are interested in a solution against payment please write a detailed description to support-europe(at)provisio.com that we can check the technical feasibility and the amount of work to make a quotation.
The adjustment fees are depending on the complexity of the changes and in general it costs 120 Euro per hour.

Regards,
Michael Olbrich
Re: Can not print iframe mode "Start Once" 23/03/2015 15:23
Thank you for your response.

Tell me why the following code:

"first code"
window.external.InitScriptInterface();
dPrinterName = SiteKiosk.Printer.DefaultPrinter;//"CUSTOM VKP80 II";
dPrinter = SiteKiosk.Printer.FindPrinter(dPrinterName);
alert(dPrinter.Comment);

Returns the following error:
20 03f5 2015-03-23 17:19:37 -0700 [SiteKiosk] Script Error: URL: http://***.ru/kiosk/model.html; ErrMsg: "Unable to get property 'Comment' of undefined or null reference"; Line: 56; Char: 1; Code: 0;

If, instead of the first code to use the second code the error is the same.

"second code"
window.external.InitScriptInterface();
dPrinterName = SiteKiosk.Printer.DefaultPrinter;//"CUSTOM VKP80 II";
dPrinter = SiteKiosk.Printer.FindPrinter(dPrinterName);
dPrinter.PrintDocument("Arial", 80,"Hello world!","","",false);

20 03f5 2015-03-23 17:19:19 -0700 [SiteKiosk] Script Error: URL: http://***.ru/kiosk/model.html; ErrMsg: "Unable to get property 'PrintDocument' of undefined or null reference"; Line: 57; Char: 1; Code: 0;
Re: Can not print iframe mode "Start Once" 23/03/2015 15:37
Hello,

Please understand that our free support cannot offer you any assistance with creating your own code or customizing the skin files (apart from the detailed SiteKiosk and SiteKiosk Object Model documentation).
- General Information about customizing SiteKiosk: http://www.sitekiosk.com/en-US/SiteKiosk/SiteSkin.aspx
- SiteKiosk help: http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?customization_%28site_skin%29.htm
- SiteKiosk Object model help: http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm

If you need further assistance in creating individual coding solutions you can contact us via e-mail that we may find a solution against payment for your needs.
(Or maybe one of the forum visitors who have already worked on this kind of code can give you some help.)

In case you are interested in a solution against payment please write a detailed description to support-europe(at)provisio.com that we can check the technical feasibility and the amount of work to make a quotation.
The adjustment fees are depending on the complexity of the changes and in general it costs 120 Euro per hour.

Regards,
Michael Olbrich
Mon compte
Connecter
Langue (Tickets):