Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - How to open a docx file from an asp.net application

Reply
 
Old 07-31-2008   #1 (permalink)
gwen.demby


 
 

How to open a docx file from an asp.net application

Hello, I hope all is well.. I was wondered if someone had a fix for
opening docx file... I am currently using the response.redirect("path
of word document") however it does not work while trying to open docx
files.. I recieve an "HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)" error...
thanks for your help.

My System SpecsSystem Spec
Old 07-31-2008   #2 (permalink)
Ben Schwehn


 
 

Re: How to open a docx file from an asp.net application

On Thu, 31 Jul 2008 05:22:52 -0700, gwen.demby wrote:
Quote:

> Hello, I hope all is well.. I was wondered if someone had a fix for
> opening docx file... I am currently using the response.redirect("path of
> word document") however it does not work while trying to open docx
> files.. I recieve an "HTTP Error 404 - File or directory not found.
> Internet Information Services (IIS)" error... thanks for your help.

Is the "path of word document" a relative path in your virtual directory?
Then Perhaps your iis isn't configured to serve docx files, you can change
that in the iis administration under mime types.

If you're using the filesystem path (like response.redirect(@"c:
\foo.docx")), this doesn't work, instead you could in your asp page open
the file using the System.IO classes and stream it directly into the
Respone.OutputStream.


--
Ben | bschwehn.de
My System SpecsSystem Spec
Old 10-03-2008   #3 (permalink)
Chris Simon


 
 

How to open a docx file from an asp.net application -gwen.demb

You need to add the mime type to IIS

docx is: application/vnd.openxmlformats-officedocument.wordprocessingml.document
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
cannot open docx.zip files Vista General
Can't open .docx file. Vista General
can't open docx Microsoft Office
Send to function wont open WinMail and attach pdf from adobe application. I know this can be accomplished by right clicking on the pdf file but I need the application to do the task. Any suggestions? Vista mail
prevhost.exe - Fatal Application Exit - Could not open a file mapp Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46