King Coffee
2009-03-20 04:44:37 UTC
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
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