473,406 Members | 2,713 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,406 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 214388
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.