Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spelling checking really slow
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00956184
Message ID:
00957296
Views:
14
Nadya,

> Also can you post a test code, so I can try it on my machine?
* Create a Word document object
loWord=CreateObject('Word.Application')
loDocument=loWord.Documents.Add
loWord.Visible=.f.


* Assign the text to the document and check spelling
loDocument.Content.Text='The long bridge faiiled in the middle. Then, Michel Fournier '+;
 'came in and sayd, who are you? Rorlf Bingo! They were winning the billa game.'

loDocument.Activate
activate window "debug output"

lnCount=loDocument.SpellingErrors.Count
IF lnCount>0
   loErrors=loDocument.SpellingErrors
   FOR EACH loError IN loErrors
       debugout seconds(), loError.Text
   ENDFOR
ENDIF

* Close the document and exit Word...
loDocument.Close(0)

loWord.Quit
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform