469,291 Members | 1,733 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,291 developers. It's quick & easy.

Word automation

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

Aug 9 '08 #1
3 1430
"Joe Lalor" <Joe La***@discussions.microsoft.comwrote in message
news:69**********************************@microsof t.com...
What am I doing wrong?
What you're doing wrong is trying to use Office Automation in a server-side
scenario, specifically ASP. This is neither recommended nor supported by
Microsoft because it cannot be guaranteed to work.

The following KB articles explain this in more detail:
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367

If you had been using ASP.NET rather than ASP, then you could have used
this:
http://www.aspose.com/categories/fil...a/default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 9 '08 #2
Thanks Mark

I am using asp.net (vb.net)

Is it possible to automate the hyperlink click in code?

Joe

Aug 9 '08 #3
"Joe Lalor" <Jo******@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
I am using ASP.NET (VB.NET)
In which case, you're posting in the wrong newsgroup - this one is for ASP
Classic.

For ASP.NET issues, post in: microsoft.public.dotnet.framework.aspnet
Is it possible to automate the hyperlink click in code?
The hyperlink...??? What hyperlink?
--
Mark Rae
ASP / ASP.NET MVP
http://www.markrae.net

Aug 10 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mickeydisn | last post: by
12 posts views Thread by Cheval | last post: by
4 posts views Thread by Daniel | last post: by
reply views Thread by mharris | last post: by
2 posts views Thread by Radek | last post: by
4 posts views Thread by Yohancef Chin | last post: by
10 posts views Thread by cj2 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.