Hi all
I have written a simple program to solve a newspaper puzzle... the 9 letter scramble.
It simply runs through all the 9 factorial combinations... and it generates millions of letter combinations.
I write the generated 'word' to a Word document using a simple word automation ... and 100's of pages are written... and word does a spell check on them... and of course most are random letter combinations.
Question: Is there any (dare I say simple) way of
1. writing the Word document (<-- this I have done)
2. checking the misspelling (<-- this Word does automatically)
3. deleting any misspelling immediately (<-- what I want Word to do)
I hope that this is a post that should be elsewhere...
This is the code I use to generate Word document.
Thanks
Fox Egg
I have written a simple program to solve a newspaper puzzle... the 9 letter scramble.
It simply runs through all the 9 factorial combinations... and it generates millions of letter combinations.
I write the generated 'word' to a Word document using a simple word automation ... and 100's of pages are written... and word does a spell check on them... and of course most are random letter combinations.
Question: Is there any (dare I say simple) way of
1. writing the Word document (<-- this I have done)
2. checking the misspelling (<-- this Word does automatically)
3. deleting any misspelling immediately (<-- what I want Word to do)
I hope that this is a post that should be elsewhere...
This is the code I use to generate Word document.
Code:
Public oWord,oselection,odoc
oWord = Createobject("word.application")
odoc = oWord.documents.Add
oselection = oWord.Selection
With oselection
.TypeText(randomstring)
Endwith
oWord.Visible = .T.
Thanks
Fox Egg