Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How can I read a word file without the Microsoft.Interop?

$
0
0

The example of the code that am using to attempt to solve the problem is as above:

File.ReadAllText(filename);

This is what am attempting to use from Systems.IO.

I would like to read a word file to into a string or stringbuilder. Though I do not have the library from Microsoft Office installed, and thus cannot use the objects to read word document.

Though upon viewing the result the file does not read into anything intelligible text, just symbols, from the possibility of it not be converted successfully?


Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>