Reading Word Files Using Visual C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kappucino XL
    New Member
    • Aug 2009
    • 16

    Reading Word Files Using Visual C#

    Hi there.
    I've been writing programs, using C#, but have never read a file using c#.(Please believe me).
    Now, I've been asked to create a program, that READS a word file, sort the content alphabetically, and print the content...

    How do I connect my C# Windows form, to a .doc file?
    please help...
  • nukefusion
    Recognized Expert New Member
    • Mar 2008
    • 221

    #2
    If you can guarantee that the end-users machine will have Word installed on it, by far the easiest way would be to add an assembly reference in your project to the Microsoft Word object library and use that to automate Word.

    Although it deals more specifically with creating a new Word document, this link will give you some idea on how to connect to a Word document.

    Comment

    Working...