M
Matt
I have this code inputted for a button...
function CTRL95_10::OnClick(eventObj)
{
var wdApp; // a general variable
wdApp = new ActiveXObject("Word.Application");
wdApp.Visible = true;
wdApp.WindowState = 1;
//var docObj = null;
wdApp.Documents.Open("C:\Documents and Settings\mattr\Desktop\test.doc");
// wdApp.Quit();
}
The error says that this file cannot be found. This path is correct though.
I have copied it from the path itself. Word opens, but it is blank because of
this error. Anyone know how to put this file inside of it? Thanks!
Matt
function CTRL95_10::OnClick(eventObj)
{
var wdApp; // a general variable
wdApp = new ActiveXObject("Word.Application");
wdApp.Visible = true;
wdApp.WindowState = 1;
//var docObj = null;
wdApp.Documents.Open("C:\Documents and Settings\mattr\Desktop\test.doc");
// wdApp.Quit();
}
The error says that this file cannot be found. This path is correct though.
I have copied it from the path itself. Word opens, but it is blank because of
this error. Anyone know how to put this file inside of it? Thanks!
Matt