Displaying contents of a .doc file

liunx

Guest
Wondering how I could go about doing this. Shouldn't be hard, I just need to know what object I should be playing with. Using a streamreader I get this garbage:

ࡱ> *,)5@ *bjbj22 "XX*2222222Fjjjj v F$5Rz$2$229 22 22 71Q9jO0FF22222$$FF$j FFjThis is a doc file. 07212005-12-56-23.doc * h7h7h7** 1h/ =!"#$%@@@ NormalCJ_HaJmH sH tH DA@D Default Paragraph FontRi@R  Table Normal4 l4a (k@(No List*,0***,,),, ... et cetera.

Which makes sense at the end of the day, since the Reader is indeed converting the file into a string and reading it.

But how can I display the contents? Anyone done this before?Try this article:

<!-- m --><a class="postlink" href="http://www.codeproject.com/aspnet/wordapplication.aspAlso">http://www.codeproject.com/aspnet/worda ... on.aspAlso</a><!-- m --> <!-- m --><a class="postlink" href="http://www.startvbdotnet.com/files/default.aspx">http://www.startvbdotnet.com/files/default.aspx</a><!-- m -->

Show creating and reading.
 
Top