Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/02/2003, 22:38
crealejo
 
Fecha de Ingreso: diciembre-2002
Ubicación: Medelllin
Mensajes: 46
Antigüedad: 21 años, 4 meses
Puntos: 0
Pregunta Problema al ejecutar word, excel y power point desde la web.

Tengo este codigo para ejecutar word, excel y power point a travéz de una página de intranet. El problema es al ejecutar excel este se abre y se cierra inmediatamente y word o power point abren normalmente sin problemas, que puede estar pasando o como puedo de otra manera ejecutar excel desde una pag. web

<!-- Iniciar Word -->

<script language="JavaScript">
function startWord(strFile)
{
var myApp = new ActiveXObject("Word.Application");
if (myApp != null)
{
myApp.Visible = true;
myApp.Documents.Open(strFile);
}
}
</script>


<a href="javascript:startWord('')">
<img src="images/word.gif" border="0" height=28 alt="Word" >&nbsp;</a>


<!-- Fin Word -->

<!-- inicio Excel -->


<script language="JavaScript">
function startExcel(strFile)
{
var myApp = new ActiveXObject("Excel.Application");
if (myApp != null)
{
myApp.Visible = true;
myApp.Workbooks.Open(strFile);
}
}
</script>

<a href="javascript:startExcel('')">
<img src="images/excel.gif" border="0" height=28 alt="Excel" >&nbsp;</a>
<!-- fin excel-->


<!-- iniciar powerpoint-->

<script language="JavaScript">
function startPowerPoint(strFile)
{
var myApp = new ActiveXObject("PowerPoint.Application");
if (myApp != null)
{
myApp.Visible = true;
myApp.Presentations.Open(strFile);
}
}
</script>

<a href="javascript:startPowerPoint('')">
<img src="images/powerp.gif" border="0" height=28 alt="Word">&nbsp;</a>

<!-- fin powerpoint-->