Reading MS word Documents through C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nadeem Yousuf
    New Member
    • Sep 2006
    • 1

    Reading MS word Documents through C#

    Hi all,

    I want to read the word document through C#.
    But all the properties of Word should be preserved
    like font style , paragraphs, indentation, and images if any.
    Need response as soon as possible because my work is at halt.

    Bye..
  • fatdaveh
    New Member
    • Sep 2006
    • 3

    #2
    You will need to download the Microsoft Office Primary Interop Assemblies from msdn and then reference them in your project.

    You can then create a Word.Applicatio n object, call the Open () method to open an existing word file and then iterate through the document.Parara phs array.

    Each Word.Paragraph object provides access to Font objects via the Range object.

    Its a fairly complex model to recreate unless you just use the Word model itself.

    Hope that gives you some guidance,

    Comment

    Working...