Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
open docx in asp.net
October 15, 2010
I have a requirement of opening the docx file in the browser. Tried with the code below. But error occurs that the file is corrupt. Is the content type correct, tried with thecontent type application/msword also.
Response.AddHeader("content-disposition", "inline;filename=" + DisplayFileName);
Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";//getContentType(filename);
The code works for all other file types when the appropriate content type is given. The problem is only with docx.
Sajid P K
Posted Date: October 18, 2010 Points: 5
please Check follwing link.. May be helpfull.
To post reply
Related Questions Related Questions
Have to open and set the range in excel sheet through C#.NET codings
Need to open popup window from the GridView
How to open one .chm help file in c# windows application menu bar....
How to open pop up in separate browser
how to open pop up in different window
how can i checked if form is already open in c#
How to identify a mail which is sent from c#.net is send, bounce and open by the receipent?
open word file
How to open New WebPage from c#.net Code
Avoiding open save cancel dialogue while opening MS Word file from cyrstal reports using vb.net
Latest Forum Questions From The Same Category
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend