Word automation

J

Joe Lalor

I am trying to automatically open a word document in an asp application. It
works fine on the local host, but when I deploy on a W2003 server, the
winword process starts ( I can see it in the task manager on the server), but
the document doesn't open on the client. If I define the document as the
target of a hyperlink on my asp page, it opens fine when I click on it. I've
tried using :

System.Diagnostics.Process.Start("c:\test.DOC")

(System.Diagnostics.Process.Start("notepad.exe") also doesn't work)

and

Batch.appWord = New Word.Application

Batch.docWord = Batch.appWord.Documents.Open("c:\test.doc")

What am I doing wrong?

Thanks
 
J

Joe Lalor

Thanks Mark

I am using asp.net (vb.net)

Is it possible to automate the hyperlink click in code?

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top