CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    1

    Altering Word File

    Alright, first off, I'm using Visual Studio 2005 C#.

    I have to write a program to read in a word file and essentially delete doubles. It doesn't seem to be possible just to itterate through word documents so my plan is to convert it to xml and edit it by that, then save it back as a word document.

    Does this make sense to anyone?

    Any advice would be appreciated.

    Thanks

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Altering Word File

    Welcome to the Forums

    Instead of converting the file to XML and then converting it back to Word, why don't you try your hands on the Word Object Library itself. You could take advantage of the Word Spell checker/grammar and get the doubled words removed by using probably simple steps. Look at the Interop for Word and you will find lot of samples on how to automate Word using C#.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Altering Word File

    RobDog888 over at VBForums.com wrote a SpellChecker a few years ago. He's done a lot of Word InterOp
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured