Re: Getting Word97 Bookmark Names from Forms 4.5

From: Sequel Solutions <akolkman_at_sequel.nl>
Date: Thu, 10 Dec 1998 13:32:01 +0100
Message-ID: <366FBF40.E3DC5FF9_at_sequel.nl>


Dear Neil,

We developed SQLWord, a nice integration between Oracle and Microsoft Word. You can download SQLWord from www.sequel.nl.

Sincerely,

Arthur Kolkman

nwgarside_at_my-dejanews.com wrote:

> I have a Forms 4.5 application that uses OLE to start a new Word97 document
> based on a template. The template has a number of bookmarks defined and I
> would like to retrieve a list of the bookmarks and display the list in my
> Forms application.
>
> I can get the number of bookmarks in the document using the following code:
>
> objActiveDoc := OLE2.GET_OBJ_PROPERTY(Word.hApp, 'ActiveDocument');
> objBookmarks := OLE2.GET_OBJ_PROPERTY(objActiveDoc, 'Bookmarks');
> numBookmarkCount := OLE2.GET_NUM_PROPERTY(objBookmarks, 'Count');
>
> Can someone tell me how I now get the name of a particular bookmark? The VBA
> equivalent would be:
>
> strBookmarkName = ActiveDocument.Bookmarks(1).Name
>
> ...which would get the name of the first bookmark. However, I don't seem to be
> able to create a handle to an individual bookmark in the Forms app.
>
> Thanks for any help you can offer...
>
> Neil W. Garside
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Thu Dec 10 1998 - 13:32:01 CET

Original text of this message