` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please 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!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 May 3, 2024, 2:38 am
This article has been viewed 35129 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: