delphi ole winword bookmarks
Does anybody know why the following Statement causes an error
var
OApp : Variant;
begin
OApp := GetActiveOleObject('Word.Application.8');
ShowMessage(OApp.ActiveDocument.Bookmarks.Count);
// Returns correct "15"
ShowMessage(OApp.ActiveDocument.Bookmarks[1].Name);
// causes Error "Item is no property"
in VB I tested
MsgBox ActiveDocument.Bookmarks.Item(1).Name
and this returns the first Bookmark-Name
I tried also
ShowMessage(OApp.ActiveDocument.Bookmarks(1).Name);
It causes Error "Bookmarks is no method" - that seems me to be ok.
thanks for any help
Dietmar