in reply to Re^2: Problem using Win32::OLE with MS Word
in thread Problem using Win32::OLE with MS Word

Actually, looking at this more closely:

>>The thing is if I use the Thesaurus in MS Word
>>directly on the word "pieces" it does return one
>>entry, that being "piece".

...that is not true. In fact, the Thesaurus returns "piece" and suggests this as a related word(ie. Replace with Related Word) and not as a synonym (ie. Replace with Synonym).

So in this case there is no suggested synonym but how would I go about coding for that (I don't want related words - just a list of matching synonyms returned).

Thanks, Adam
  • Comment on Re^3: Problem using Win32::OLE with MS Word

Replies are listed 'Best First'.
Re^4: Problem using Win32::OLE with MS Word
by Anonymous Monk on Nov 14, 2005 at 10:57 UTC
    Solved. Just had to replace this:
    if ($synonyms->Found)

    ....with this:
    if (($synonyms->Found) && ($synonyms->SynonymList(1)))