Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Word Application in IE5

Status
Not open for further replies.

themaestro

Programmer
Mar 26, 2002
1
GB
Hi

.The following code is used to open a word application. This code works when I test it by running it in a separate browser window through Dreamweaver albeit the fact that it dispays an active x message asking if I want to continue. However, the same code does not do anything in my application when I click on the 'Launch' button. Any ideas how I can open the application.

.Also, what would I need to do to get the word application to open in a frame called 'template2'.

Thanx in advance<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub OpenDoc(strLocation)
Set objWord = CreateObject(&quot;Word.Application&quot;)
objWord.Visible = true
objWord.Documents.Open(strLocation)
End Sub
</SCRIPT>

<INPUT TYPE=BUTTON NAME=&quot;Btn1&quot; VALUE=&quot;Launch Word&quot; onClick=&quot;OpenDoc('c:/Program Files/IBM/VisualAge for Java/ide/project_resources/IBM Websphere Test Environment/hosts/default_host/default_app/web/WordFiles/SubScriber1/CHANGE REQUEST FORM.doc'>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top