Word COM object not marked as 'safe'?

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

From: Rob Stewart (robst_at_newsgroups.nospam)
Date: 09/03/04


Date: Thu, 2 Sep 2004 20:25:04 -0700

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



Relevant Pages

  • Re: Word COM object not marked as safe?
    ... "Rob Stewart" wrote in message ... > "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. ...
    (microsoft.public.scripting.jscript)
  • Re: Use of wide screens with Remote Desktop Web Connection ActiveX
    ... ActiveX control with the new RDP 6.0 client. ... our users problems with wide screens? ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: VB Scripting CreateObject Client Side Object
    ... that does sound like a job for an ActiveX control. ... I have a client application that pulls credit reports. ... > from the browser into my application. ... > ActiveX object that would set properties and launch (w/ command line ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HTTP receive issue
    ... Client requests.aspx from the WSS server ... Client probes the WSS server for the required ActiveX control by ...
    (microsoft.public.biztalk.general)
  • Re: HTTP receive issue
    ... type is defined in your IIS settings so that it is aware of the media type. ... Client probes the WSS server for the required ActiveX control by ...
    (microsoft.public.biztalk.general)