Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Bookmarks
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00758718
Message ID:
00758728
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform