Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

orthographic corrector

Status
Not open for further replies.

clatimier

Programmer
Apr 11, 2003
26
FR
Hi

Is someone already implement an orthographic corrector in an application in Clarion ?
Is it possible to do this ? How ? Does a dictionnary exists to integrate in an application ?

Thx
 
Hi,

You can use Word to do it:
WordId is a Long, MyText is a string

WordID = CREATE(0,CREATE:Ole)
WordID{PROP:Create} = 'Word.Document'
WordID{PROP:DoVerb} = -3
WordID{'Application.Visible'} = False
WordID{'Application.Documents.Add' }
WordID{'Application.Selection.Text'} = MyText
WordID{'Application.ActiveDocument.CheckGrammar' }
MyText = WordID{'Application.Selection.Text'}
WordID{'Application.ActiveDocument.Close(0)'}
WordID{'Application.Close' }
WordID{PROP:DeActivate}
DESTROY(WordID)

Valery.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top