PC Review


Reply
Thread Tools Rate Thread

ActiveXObject error

 
 
King Coffee
Guest
Posts: n/a
 
      20th Mar 2009
Actually am using ie7 and MS Vista... but not newsgroup exist for it. Went
I try to execute the JScript below:

function openWord() {
alert("inside openWord");
var word = new ActiveXObject('Word.Application'); // get stuck here

if (word != null) {
alert("Caught");
word.Visible = true;
var doc = word.Documents.Add();
doc.Content = "Gaurang";
word.quit(0);
}
else {
alert("MS WORD IS NOT INSTALLED");
}
}

I get JScript runtime error: Automation server can't create object.

How can I get around this error?

King

 
Reply With Quote
 
 
 
 
PA Bear [MS MVP]
Guest
Posts: n/a
 
      20th Mar 2009
IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Or you could post here instead:

MSDN IE Development Forums
http://forums.microsoft.com/MSDN/def...D=253&SiteID=1

=> Those with IE7-specific questions or comments are asked to post to and
seek support in this newsgroup: microsoft.public.internetexplorer.general

On the web:
http://www.microsoft.com/communities...plorer.general

In your newsreader:
news://msnews.microsoft.com/microsof...plorer.general
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Client - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/



King Coffee wrote:
> Actually am using ie7 and MS Vista... but not newsgroup exist for it.
> Went
> I try to execute the JScript below:
>
> function openWord() {
> alert("inside openWord");
> var word = new ActiveXObject('Word.Application'); // get stuck here
>
> if (word != null) {
> alert("Caught");
> word.Visible = true;
> var doc = word.Documents.Add();
> doc.Content = "Gaurang";
> word.quit(0);
> }
> else {
> alert("MS WORD IS NOT INSTALLED");
> }
> }
>
> I get JScript runtime error: Automation server can't create object.
>
> How can I get around this error?
>
> King


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript, new ActiveXObject() and events =?Utf-8?B?RXVnZW5l?= Microsoft ASP .NET 3 15th Aug 2007 02:50 PM
Re: Starting PowerPoint from the Web using ActiveXObject Tony B. Microsoft Powerpoint 0 7th May 2004 12:54 PM
Starting PowerPoint from the Web using ActiveXObject Tony B. Microsoft Powerpoint 3 5th May 2004 05:39 PM
ListBox, ActiveXObject =?Utf-8?B?T3Jlbg==?= Microsoft ASP .NET 1 8th Apr 2004 10:45 AM
ActiveXObject Oren Microsoft ASP .NET 1 24th Nov 2003 07:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:00 PM.