Re: Word COM object not marked as 'safe'?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joe Fawcett (joefawcett_at_hotmail.com)
Date: 09/03/04


Date: Fri, 3 Sep 2004 11:51:17 +0100


"Rob Stewart" <robst@newsgroups.nospam> wrote in message
news:8549EABA-7AD7-48A9-84B8-33CF2AE79B18@microsoft.com...
> I have a web page that launches a javascript to open a Word document on a
> client PC:
>
> ****************************
> function launchWord(fileName)
> {
> var theApp = new ActiveXObject("Word.Application");
> if (theApp != null)
> {
> theApp.Visible = true;
> theApp.Documents.Open(fileName, false, false);
> }
> }
> ****************************
>
> This works fine, except that we get an IE message:
>
> "An ActiveX control on this page might be unsafe to interact with other
> parts of the page. Do you want to allow this interaction?"
>
> Clicking Yes launches the Word doc, but I want to avoid this prompt
> altogether. If I set the IE security option "Initialize and script ActiveX
> controls not marked as safe" to "Enable", this fixes the problem, but our
> client will not allow this setting (understandably).
>
> My question is - given that the ActiveX control that this message is
> referring to is the Word COM object, how can I mark it as 'safe'? How can
I
> avoid this messagebox?
>
> Cheers,
> Rob

If your user wants the functionality of your site but without the warning
ask them to add your site to trusted sites zone and lower the settings for
that zone only.

-- 
Joe


Relevant Pages

  • Word COM object not marked as safe?
    ... "An ActiveX control on this page might be unsafe to interact with other ... Clicking Yes launches the Word doc, but I want to avoid this prompt ... client will not allow this setting. ... referring to is the Word COM object, how can I mark it as 'safe'? ...
    (microsoft.public.scripting.jscript)
  • Re: Execute Java in a new window
    ... > reason that does not work is that in is actually the shell (cmd.exe or ... > file that launches the updater, waits for it to finish and then launches ... Players actually launch the updater which checks for fresh ... >> updates, then installs them, then launches the game client. ...
    (comp.lang.java)
  • Re: Execute Java in a new window
    ... > reason that does not work is that in is actually the shell (cmd.exe or ... > file that launches the updater, waits for it to finish and then launches ... Players actually launch the updater which checks for fresh ... >> updates, then installs them, then launches the game client. ...
    (comp.lang.java.help)
  • OE password always required
    ... Just networked 2 PC's and the client PC always prompts me to logon before OE ... launches. ...
    (microsoft.public.windowsxp.general)