Ravi,
That's because a call like that is creating the word document on the server
not the client. When dealing with web applications you have to remember that
the code you are writing is being executed on the server. All that the
client receives is the html result of that code execution.
You can not open a word document on a client without first downloading an
ActiveX object or something similar to the client.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Ravi J" <Ravi
J@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
I am trying to load Microsoft Word and create a document in ASP.NET (C#).
But the call to application creation 'Word._Application app = new
Word.ApplicationClass();' takes quit a bit of time, and eventually "Server
Execution Failed" page appears.
"Exception Details: System.Runtime.InteropServices.COMException: Server
execution failed ..
[COMException (0x80080005): Server execution failed]"
The same call inside a WIndows Form succeeds. But for some reason, in
ASP.NET it doesn't.
Quick search on the internet didn't reveal anything new. I would
appriciate if anyone would throw some light on it.
TIA,
Ravi