Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Spell checking a memo 2000-06-08 -- Ray Dummer !Declare two variables:
WordObject long
CheckString string(1000)
! string for CheckSpelling
!Embed point where you want to check the spelling
WordObject=create(0,create:ole) ! create temporary
Ole Control
WordObject{prop:create}='Word.Document' ! Create MS Word
Document Object
WordObject{'Application.Visible'}=False ! Hidden Word Window
WordObject{'Application.Documents.Add'} ! Create new
document
WordObject{'Application.Selection.Text'}=CheckString ! Copy checkString
into Word
WordObject{'Application.ActiveDocument.CheckSpelling'} ! start
CheckSpelling
CheckString = WordObject{'Application.Selection.Text'} ! Copy CheckString
back
WordObject{'Application.ActiveWindow.WindowState'}=2 ! close document and
Quit from MsWord
WordObject{'Application.ActiveDocument.Close(0)'} ! Closing without
save
WordObject{'close'}
WordObject{'Application.Quit'}
WordObject{prop:deactivate}
Destroy(WordObject)
Today is November 23, 2024, 3:34 am This article has been viewed 35334 times.
|
|