How to read docx file through c#?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
 
Hi,
<p align=left> 
<p align=left>i am trying to read the contents of MS Word document through C#  2.0.
<p align=left>I could able to do it using the below statement.
<p align=left><font color="#008080" size=2><font color="#000000 string contents = </font>File</font><font size=2>.ReadAllText(filePath).</font>
<p align=left><font size=2>But if the document is of extension docx, the above statement is not working.</font>
<p align=left><font size=2>Please help me out what i have to do.</font>
<p align=left><font size=2>I could understand docx should be handled in a different way as it is in XML format .</font>
<p align=left> 
<p align=left><font size=2>Thanks,</font>
<p align=left><font size=2>Srikanth</font>

View the full article
 
Back
Top