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#?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With