Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i read .docx file? [closed]

Tags:

c#

docx

I have a .docx file and it contains many email addresses to which i want to bulk mail. How can i read docx file through c#?

like image 243
TCM Avatar asked Sep 03 '10 06:09

TCM


People also ask

Can you open a Word document if you don't have Word?

You just have to use your browser. Install LibreOffice, a free and open-source office suite. This is an alternative to Microsoft Office. LibreOffice Writer, which is included, can open and edit Microsoft Word documents in DOC and DOCX format.

Why does DOCX not open?

Disable the protected view settings; it can also resolve and open corrupt word DOC and DOCX files to fix the issue where the Word file would not open. Open the Microsoft Word application on your system. Click on 'Options' in the 'File' menu. Click on 'Trust Center' and then select 'Trust Center Settings.


1 Answers

The easiest way is probably to use the Open XML SDK 2.0

Get Code Snippets for Visual Studio 2008 for some examples

And I would highly recommend downloading the Open XML SDK productivity tool which will help you understand how the Open XML files are structured, and can even help you generate source code to use with the SDK based on the structure of your documents. You can download the tool from the same page as the SDK. It's 100MB, but it's worth the download.

like image 165
Gerald Avatar answered Sep 23 '22 00:09

Gerald