Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi
sir,

You have provide code for How read doc and docx file in asp.net,C#
Thanks sir, Its work fine but it is Window Application not for web application.
my project is web application.

please,sir help me i am in problem and its very urgent.I will be gratefull


Regards
Nandita
Posted
Comments
manognya kota 15-Feb-12 6:58am    
Hi,

Post this as a comment in the same thread where you have got the reply.I think that would help you.
Sudip Saha 15-Feb-12 7:01am    
http://www.codeproject.com/Questions/329752/Read-doc-and-Docx-file-in-Asp-net
ZurdoDev 15-Feb-12 8:08am    
So, you have code that reads a document that works in a Win App but not in the web? Is that what you are saying? Why doesn't it work in the web? What error do you get? What does the code look like? How about some information?

1 solution

Hi, I believe the issue you are facing is the fact that you are trying to use Word Interop in .NET, but you do not have an MS Office installed. Without an Office you cannot use a word automation and also even if you had Office you should realize that MS does not recommend automation of Microsoft Office applications on server side.

You can read your DOCX files in C# on server side with a help of OpenXML SDK, but if you require to read DOC files in C# then you can try this .NET Word dll which can cover both file formats (DOC and DOCX).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900