Word COM object not marked as 'safe'?
From: Rob Stewart (robst_at_newsgroups.nospam)
Date: 09/03/04
- Next message: Kevin Yu [MSFT]: "RE: Word COM object not marked as 'safe'?"
- Previous message: zwetan: "Re: New WSH 5.6 builds (5.6.0.8825) available"
- Next in thread: Kevin Yu [MSFT]: "RE: Word COM object not marked as 'safe'?"
- Reply: Kevin Yu [MSFT]: "RE: Word COM object not marked as 'safe'?"
- Reply: Joe Fawcett: "Re: Word COM object not marked as 'safe'?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Kevin Yu [MSFT]: "RE: Word COM object not marked as 'safe'?"
- Previous message: zwetan: "Re: New WSH 5.6 builds (5.6.0.8825) available"
- Next in thread: Kevin Yu [MSFT]: "RE: Word COM object not marked as 'safe'?"
- Reply: Kevin Yu [MSFT]: "RE: Word COM object not marked as 'safe'?"
- Reply: Joe Fawcett: "Re: Word COM object not marked as 'safe'?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|