V
Vincent
We currently use Javascript to launch the outlook from the web
application interface (web browser). It can launch successfully, but
when the user close the outlook, and then relaunch again, there's
always error and the outlook is not open. I check through the task
manager and found that outlook process is still there. Any idea on the
problem? Below is the javascript code:
outlookApp = new ActiveXObject("Outlook.Application");
if (outlookApp.Explorers.Count > 0) {
outlookApp.Explorers.Item(1).display();
outlookApp.Explorers.Item(1).windowstate = 0;
} else {
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailFolder.display();
outlookApp.Explorers.Item(1).windowstate = 0;
nameSpace = null;
mailFolder = null;
}
outlookApp = null;
window.opener='X';
window.open('','_parent','');
window.close();
application interface (web browser). It can launch successfully, but
when the user close the outlook, and then relaunch again, there's
always error and the outlook is not open. I check through the task
manager and found that outlook process is still there. Any idea on the
problem? Below is the javascript code:
outlookApp = new ActiveXObject("Outlook.Application");
if (outlookApp.Explorers.Count > 0) {
outlookApp.Explorers.Item(1).display();
outlookApp.Explorers.Item(1).windowstate = 0;
} else {
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailFolder.display();
outlookApp.Explorers.Item(1).windowstate = 0;
nameSpace = null;
mailFolder = null;
}
outlookApp = null;
window.opener='X';
window.open('','_parent','');
window.close();