IE error: Automation server can't create object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim

    IE error: Automation server can't create object

    The following javascript has been working just fine for the last 5 months.
    Now, for no apparent reason, the following error occurs when the script is
    run.

    "Automation server can't create object"


    The script is below. Please note that the parameter passed to the function
    is a valid path/filename.

    I tried setting all browser security settings to "low", but this did not
    resolve the problem.

    Any suggestions are greatly appreciated.

    -----------------------------------

    <script language="JavaS cript">
    function startWord(strFi le)
    {
    var myApp = new ActiveXObject(" Word.Applicatio n");
    if (myApp != null)
    {
    myApp.Visible = true;
    myApp.Documents .Open(strFile);
    }
    }
    </script>



  • Ivo

    #2
    Re: IE error: Automation server can't create object

    "Tim" wrote[color=blue]
    > "Automation server can't create object"
    >
    > I tried setting all browser security settings to "low", but this did not
    > resolve the problem.
    >[/color]

    Yes, those levels are confusing. Undo what you just did, first of all. Then
    you need to tweak the properties of the level that the site is in. Tools ?
    Internet Options… ? choose tab Security ? click button Custom level ? scroll
    to 'Run ActiveX controls and plug-ins' ? select ‘prompt’ or ‘enable’.
    Presumably something 's changed there, probably we 'll never know how.
    --
    hth
    ivo



    Comment

    • Ivo

      #3
      Re: IE error: Automation server can't create object

      "Ivo" wrote[color=blue]
      > you need to tweak the properties of the level that the site is in. Tools ?
      > Internet Options… ? choose tab Security ? click button Custom level ?[/color]
      scroll[color=blue]
      > to 'Run ActiveX controls and plug-ins' ? select ‘prompt’ or ‘enable’.[/color]

      Those question marks were right-pointing arrows --> earlier on.
      ivo


      Comment

      • Tim

        #4
        Re: IE error: Automation server can't create object

        >Ivo" <no@thank.you > wrote in message[color=blue]
        >news:43b99e67$ 0$27194$dbd4d00 1@news.wanadoo. nl...
        > "Ivo" wrote[color=green]
        >> you need to tweak the properties of the level that the site is in. Tools
        >> ?
        >> Internet Options. ? choose tab Security ? click button Custom level ?[/color]
        > scroll[color=green]
        >> to 'Run ActiveX controls and plug-ins' ? select 'prompt' or 'enable'.[/color]
        >
        > Those question marks were right-pointing arrows --> earlier on.
        > ivo[/color]

        That particular setting didn't fixed the problem. However, I decided to try
        some of the others in that section. Turns out the problem has been resolved
        by enabling the following setting "Initialize and script ActiveX control not
        marked as safe."

        thanks Ivo!






        Comment

        • Danny

          #5
          Re: IE error: Automation server can't create object



          May just be you updated/removed something, maybe added Sp2 or
          something got updated or changed somehow, Word.Applicatio n argument
          I'd think uses DDE accessing to an understood to be installed and
          registered(regi stry wise) Microsoft Word component, which usually
          since office97 doesn't install by itself but is part of MS office
          suite. So, the call is fine as is, the component however, is not
          found by ActiveXObject() constructor, so, doesn't seem to me to be a
          js issue, more than a system component one. You could put your code
          in a try {...} catch() {...} statements and do some Exceptioin
          capturing.


          Danny

          Comment

          Working...