Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

spelling check program using OLE

Former Member
0 Kudos
90

I have tried to code one program which will give spelling suggestions as below:

 
TYPE-POOLS ole2. 
DATA word TYPE ole2_object. 
DATA documents TYPE ole2_object. 
DATA document TYPE ole2_object. 
DATA spellings TYPE ole2_object. 
DATA count TYPE i. 

CREATE OBJECT word 'Word.Application'. 
CALL METHOD OF word 'Documents' = documents. 
CALL METHOD OF documents 'Add' = document. 

CALL METHOD OF word 'GetSpellingSuggestions' = spellings 
  EXPORTING 
  #1 = 'convertion'. 

GET PROPERTY OF spellings 'Count' = count. 

WRITE:/ 'Suggestion count' , count. 

CALL METHOD OF word 'QUIT' 
  EXPORTING 
  #1 = 0. 

FREE OBJECT document. 
FREE OBJECT documents. 
FREE OBJECT word. 
CLEAR word. 

now my problem is I am able to find out how many suggestion has been provided after this statement:

 
GET PROPERTY OF spellings 'Count' = count. 

but not able to find out those suggested word

please help me on this.

thanks in advance.

Solved by own

Edited by: Khandal Haresh on Jul 3, 2008 9:07 AM

1 REPLY 1

Former Member
0 Kudos
57

Solved by own