I was trying to extract a text(string) from MS Word (.doc, .docx), Excel and Powerpoint using C#. Where can i find a free and simple .Net library to read MS Office documents?
I tried to use NPOI but i didn’t get a sample about how to use NPOI.
I was trying to extract a text(string) from MS Word (.doc, .docx), Excel and
Share
Using PInvokes you can use the IFilter interface (on Windows). The IFilters for many common file types are installed with Windows (you can browse them using this tool. You can just ask the IFilter to return you the text from the file. There are several sets of example code (here is one such example).