Getting word count from word using Delphi

Quote
> I have the following code, which does not quite work.
[snip]
>   for i := 1 to vWord.ActiveDocument.Words.count do
>     ShowMessage(vWord.ActiveDocument.Words(i).Font.Name);

Use:
    ShowMessage(vWord.ActiveDocument.Words.Item(i).Font.Name);

--
Deepak Shenoy (TeamB)
Agni Software
http://www.agnisoft.com