Lancer excel depuis internet explorer!!

cs_aminix9 Messages postés 96 Date d'inscription mercredi 2 juin 2004 Statut Membre Dernière intervention 9 février 2010 - 9 mars 2005 à 00:42
cs_aminix9 Messages postés 96 Date d'inscription mercredi 2 juin 2004 Statut Membre Dernière intervention 9 février 2010 - 9 mars 2005 à 20:13
salut tou lmonde !!
je voudrais ouvrir excel depuis internet explorer!!
j explik: j ai un tableau dans une page html et un bouton ki s appel "basculer
ver excel" ce bouton doit ouvrir excel et afficher un classeur ki contien
les donnees ki été dans le tablo de la page html!!
je pense ke j été clair et ke ce ke je demande n est pa "mission impossible"

j atten vos suggestions et merci !!
aminix

2 réponses

cs_sbertho Messages postés 30 Date d'inscription mardi 22 octobre 2002 Statut Membre Dernière intervention 11 juin 2007
9 mars 2005 à 09:06
Cette solution n'est pas de moi mais je pense qu'elle peut t'aider, enregistre le texte suivant en .hta :
<html><head>
<HTA:Application id="AppExecute"
ApplicationName="AppExecute"
WindowState="maximize">
<style>
.class0 {background-color:lightblue;color:darkblue;}
</style>
<script language="JavaScript"><!--
function AppExecute(app) {
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.Run(app+".exe", 1, true);
}
--></script></head>

Free JavaScript provided by ©2003-VB'Breizh :[ Web Site
Adapted from Avner Cohen
and HyperWrite</center>
<hr>
Works only with IE.501 and more recent.

Just save your .html file as a .hta file and it should run via the HTML application host.

This script works with a MS proprietary format (.hta extension = executable .html).

Internet Explorer will display the File Download dialog
box before the *.hta is opened as a security measure.




</form></center>
</html>

Steph
0
cs_aminix9 Messages postés 96 Date d'inscription mercredi 2 juin 2004 Statut Membre Dernière intervention 9 février 2010
9 mars 2005 à 20:13
salu steph( sbertho) et merci pour ton code !!
à la prochaine!!

aminix
0
Rejoignez-nous