By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

IE error: Automation server can't create object

P: n/a
Tim
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="JavaScript">
function startWord(strFile)
{
var myApp = new ActiveXObject("Word.Application");
if (myApp != null)
{
myApp.Visible = true;
myApp.Documents.Open(strFile);
}
}
</script>

Jan 2 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Ivo
"Tim" wrote
"Automation server can't create object"

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


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
http://4umi.com/web/javascript/
Jan 2 '06 #2

P: n/a
Ivo
"Ivo" wrote
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’.


Those question marks were right-pointing arrows --> earlier on.
ivo
Jan 2 '06 #3

P: n/a
Tim
>Ivo" <no@thank.you> wrote in message
news:43***********************@news.wanadoo.nl. ..
"Ivo" wrote
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'.


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


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!


Jan 2 '06 #4

P: n/a


May just be you updated/removed something, maybe added Sp2 or
something got updated or changed somehow, Word.Application argument
I'd think uses DDE accessing to an understood to be installed and
registered(registry 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
Jan 2 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.