J'ai un petit script sur ma page Intranet qui doit ouvrir Word avec un fichier que je spécifie. Mais ca ne marche pas et Internet Explorer me donne comme erreur que : Un composant ActiveX ne peut pas créer un objetc.
Est-ce que quelqu'un peu m'aider?
Merci
<HEAD>
function open_file(filepath)
{Sh = new ActiveXObject("WScript.Shell");
Sh.Run ("C:\Program Files\Microsoft office\office\WINWORD " + filepath, 1, 0);
}
....
</HEAD>
<BODY>
....
Response.Write "<a href =""#"" onClick=""open_file ('" & strChemin & "')"">" & strNom & "</a> " & strResults & "<BR>" & VbCrLf
...
</BODY>