Hi all!
The code below works with Word files and Internet Explorer (I have IE 5.5 and Office 2000) setting the security level to Low. If I want to use the same script to download an Excel application (and replace "Word.Application" with "Excel.Application", the browser launch Excel but then it stops and refuse to load the xls file:
<script language="VBScript">
<!--
Sub MenuClick()
Dim ojbWord
Set objWord = CreateObject("Word.Application"
objWord.Visible = true
objWord.Documents.Open "/mywebsite/test.doc"
Set objWord = Nothing
window.location.href="/home.asp"
End Sub
//-->
</script>
...
<body onLoad="VBScript:MenuClick()">
Does anyone have any ideas how can I fix this?
I would really appreciate your help,
Thanks!
Ayac
The code below works with Word files and Internet Explorer (I have IE 5.5 and Office 2000) setting the security level to Low. If I want to use the same script to download an Excel application (and replace "Word.Application" with "Excel.Application", the browser launch Excel but then it stops and refuse to load the xls file:
<script language="VBScript">
<!--
Sub MenuClick()
Dim ojbWord
Set objWord = CreateObject("Word.Application"
objWord.Visible = true
objWord.Documents.Open "/mywebsite/test.doc"
Set objWord = Nothing
window.location.href="/home.asp"
End Sub
//-->
</script>
...
<body onLoad="VBScript:MenuClick()">
Does anyone have any ideas how can I fix this?
I would really appreciate your help,
Thanks!
Ayac