Click to See Complete Forum and Search --> : Opening multiple MS-Office applications in ASP.....


anand_vijayan
May 17th, 1999, 01:00 AM
Hi,

I have to open multiple files listed in the form of check boxes. The files could be of any type 'doc','ppt' etc. I want to know the exact code to open the word application in ASP. I have a piece of code that doesn't seem to be working. It says the the operation 'File.Open' or any other property is not supported by the object. Here is the code

<%
Dim Wordappobj
Set Wordappobj = CreateObject("Word.Application")

Wordappobj.FileOpen "c:\inetpub\anand\cmt\sudir\sudhir[1].doc"
Wordappobj.SaveAs "f.doc"
Wordappobj.Application.Quit
Set Wordappobj = Nothing
response.write "success"
%>

I donot know if this code opens the word application.

Thank You in advance.

Anand

V. Anand,
Flat No 201, DivyaSai Apts.,
64 Pragathi Nagar,
Yosufguda,
Hyderabad - 500 045.