Community Forum

The Problem Of Scriptx In IE8

Profile Image 1 Posts 1 Karma
scriptx_zznk posted this 03 January 2014

HI ,When I use  the free 6,5,439,30 version of ScriptX in IE8

When The print Page Of Html which Contain more Content and The Print Result  will in more Page,When i unChecked the shrink to fit which in IE menu  File|PageSetting,The print Result only Can print first Page; While  when I Checked the shrink to fit which in IE menu  File|PageSetting,It Can print All Page,but the Second Page content  appear in First Page and the Font is shrink  , I want unChecked the shrink to fit which in IE menu  File|PageSetting and print all pages, Can you give me some Advice for this issue?Thanks.

Profile Image 182 Posts 182 Karma
Jerry posted this 03 January 2014

IE8 has quite a few bugs in this area. Can you upgrade to a later browser?

Profile Image 1 Posts 1 Karma
vkokkodan posted this 24 April 2015

I was trying to install the scriptX for silent printing in our application. We had a silet printing using vbscript,

Sub Print()

OLECMDID_PRINT = 6

OLECMDEXECOPT_DONTPROMPTUSER = 2

OLECMDEXECOPT_PROMPTUSER = 1

call WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,1)

End Sub

but once IE11 came in, it is not working. We made that working using a java script, but needed to make a ActiveX  setting change (Initialize and script ActiveX controls not marked as safe for scripting - Enabled)

function printJS(){

if (navigator.appName == "Microsoft Internet Explorer")

    var PrintCommand = '<object ID="PrintCommandObject" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';

    document.body.insertAdjacentHTML('beforeEnd', PrintCommand); 

    PrintCommandObject.ExecWB(6, 2); PrintCommandObject.outerHTML = ""; 

else { window.print();

 

   }

As the customers do not want this solution, we need to search for some other method to do the silent print. Either using a Java Applet or other 3rd party tool. below code do not create a 'factory' object for me. 

<!-- MeadCo ScriptX -->

<object id="factory" style="display:none"

  classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"

  codebase="https://localhost:9444/SelfServiceWeb/WEB-INF/smsx.cab#Version=7,5,0,20">

</object>

 

<script type="text/javascript" >

function window.onload() {

  if ( !factory.object ) {

    alert("MeadCo's ScriptX Control is not properly installed!");

    //navigate("scriptx-install-error.htm");

    return;

  }

  alert("Ready to script MeadCo's ScriptX!")

}

</script>

While running, I'm getting factory as a OBJECT, but getting the message as 'MeadCo's ScriptX Control is not properly installed!'. I'm using IE8. I do not have any other objects in the file. Can anyone help?

 

 

Profile Image 182 Posts 182 Karma
Jerry posted this 24 April 2015

 

Please contact your Corporate help desk to resolve this issue as described below OR - if you can - please do this yourself (EXACTLY, in full, no workarounds available):

 

 

 

Log on to your 'problem' PC(s) with full local computer administrator privileges:

 

 

 

+++++++++++++++++++++++++++

 

 

 

**VITAL**: this will NOT work if you don't do this, or have someone else do it for you.

 

 

 

Please do NOT proceed past this point without access to local admin privileges (i.e. someone must be logged on as a member of your PC's computer administrator user group. NOT 'domain' or 'virtual' or 'remote' or any other sort of admin, this must be *local*).

 

 

 

If you are not the administrator for your machine you will need to contact your systems administrator for their help.

 

 

 

+++++++++++++++++++++++++++

 

 

 

ONLY THEN:

 

 

 

Run this file:

 

 

 

  http://my.meadroid.com/scriptx/bits/hotfix/scriptx.msi

 

 

 

(Remember that you should right-click on the .msi file, choose 'Properties' and then on the 'General' tab click the 'UNBLOCK' button and then click 'OK' to allow the binaries to install correctly.)

 

 

 

This will install the current release of ScriptX.

 

 

 

Then clear your IE cache, navigate back to the ScriptX-enabled content you have been trying to work with and then try again.

 

 

 

****************

 

****************

 

Call ScriptX by the ID of the object (we use 'factory' by default) 

 

That *will* work.

 

 

Best wishes

 

 

 

Jerry

 

 

 

MeadCo