Click here to Skip to main content
16,015,900 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to read the content of a .doc or .docs file and display the content in webpage
Posted
Comments
StephenGehlert 19-Jun-15 3:48am    
I presume you mean .doc and .docx (instead of .docs). I must say I wouldn't advice running the MS Word application like it is suggested in "Solution 1".
It is highly unrecommended to use a word automation in .NET on server side.
Instead you can check out this article that demonstrates how you can load (a.k.a. open and read) both .doc and .docx in C# with the same approach.
Also here is how you can convert those Word documents into a HTML with C#. Note that both articles use this Word library for C#.

 
Share this answer
 
v2

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