Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Bookmarks
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00758718
Message ID:
00758728
Views:
12
Thanks

Peter
>wdGoToBookmark=-1
>...
>with oWord
> .Selection.GoTo(wdGoToBookmark,,,"TestBookmark")
>
>>I have documents with bookmarks.
>>I want to open a doc from a hyperlink and go to a specific bookmark
>>
>>here is the a code example:
>>
>>
>>LOCAL x1
>>x1=ADDBS(SYS(5) + SYS(2003) )+"DocDir\Sif_Manual.doc"
>>LOCAL oWord as word.application
>>oWord=CREATEOBJECT("WORD.APPLICATION")
>>
>>WITH oWord
>>	oDoc=oWord.Documents.Open(x1)
>>
>>        oDoc.GotoBookmark('Reserves' && this is my pseudo code what is the real thing?
>>
>>	oWord.Visible=.t.
>>endwith
>>
>>
>>
>>
>>
>>I found how to add a bookmark programatically, but not how to jump to it.
>>
>>
>>Thanks
>>
>>Peter
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform