473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

IE error: Automation server can't create object

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
4 214386
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
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
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


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Raed Sawalha | last post by:
I successfully created ASP.NET Web Application, but when write click the problem and click Add new Item and choose any item (like class webform...etc) then click OK error message is generated...
1
by: Ueslei R. Valentini | last post by:
Hi! Does anyone figured out this error when trying to create a new page in a web project under Windows2003, using Visual Studio .Net 2003? "Automation server can't create object " HSH Ueslei
2
by: lulu | last post by:
Hello! I am getting the error 'automation server can't create object ' when trying to create new IE instance in jscript : var ie = new ActiveXObject('InternetExplorer.Application'); ie.visible...
1
by: nehacredo | last post by:
hi all.. when im copying a PDF file content to a textarea using JavaScript i am getting an error "Automation Server Can't creat object" why it is coming... im copying my code here. <html>...
3
by: rcnairc2k | last post by:
while i am using File system object in Java script. i got this error " Automation server can't create object" my code is for transfer a file from users system to host location.. Working in ASP.NET...
5
by: vipinkrajput | last post by:
Hi, i m using javascript for writing in a file,the code is correctly working with IE 6.0, i m getting the error like "Automation server can't create object" in IE 7.0 while using...
11
by: baburk | last post by:
I wants to capture Table contents(ie. entire table) into image file in aspx page. How to do?. There is a code for captuer a portion of he screen. Cature a rectangle of the screen and save to...
1
by: lovetobesumit | last post by:
I use file system object to open a html file in a text area. when i write the code like, fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.OpenTextFile(file,...
0
by: dim505 | last post by:
hi friends, I'm new to this forum. I have created and build a dll but at first it was getting the error"Automation server can't create object" after a lot of head ache,I got the script...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.