-
June 8th, 2009, 10:52 AM
#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
-
June 8th, 2009, 03:49 PM
#2
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#.
-
June 8th, 2009, 09:46 PM
#3
Re: Altering Word File
RobDog888 over at VBForums.com wrote a SpellChecker a few years ago. He's done a lot of Word InterOp
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|