
03-20-2009
|
|
|
|
Re: ActiveXObject error
(cross-post added to Word Programming)
"King Coffee" <kcoffee@hotmail.com> wrote in message news:2338EF28-A6B3-46D9-A571-59A5AFEC72CA@microsoft.com...
> Hi,
>
> I'm using ie7 and vista.
>
> 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
Try a Word NG. They are more likely to know what
the Word ActiveX control is called and how to diagnose
problems with it. Cross-posting to one for convenience.
Otherwise I would try using ProcMon for clues.
Good luck
Robert Aldwinckle
---
|