2008 Jul 02 12:17 PM
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
2008 Jul 03 8:08 AM