TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sandhya Chandrasekharan
NA
10
29.1k
Open docx from asp.net
Oct 13 2010 9:21 AM
I am trying to open a docx file with the following piece of code.
Response.AddHeader(
"content-disposition"
,
"inline;filename=
DisplayFileName.docx");
Response.ContentType = "
application/vnd.openxmlformats-officedocument.wordprocessingml.document
";
Response.WriteFile(fullpath);
Response.Flush();
Response.End();
The problem is that it throws up an error that file is corrupt. Is the above content type correct? Other file types are fine when the appropriate content type is given. The problem is only with docx. Please help. Its urgent...
Reply
Answers (
4
)
HOW TO PLAY THE .FLV FILE IN ASP.NET
Oracle Padding Attack