Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Bookmarks
Message
De
28/02/2003 12:52:43
 
 
À
27/02/2003 13:48:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00758718
Message ID:
00759517
Vues:
13
Tamar,
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)
	*.Selection.GoTo(wdGoToBookmark,,,"CaseReserving")
	oRange =  .Bookmarks("CaseReserving").Range()

	.Visible=.t.

endwith
This gives me the error:
Member ookmarks does not evaluate to an object

Peter

>>I want to open a doc from a hyperlink and go to a specific bookmark
>
>Rather than going to a bookmark, you can simple access it:
>
>oRange = oWord.Bookmarks("MyBookMark").Range()
>
>
>Tamar
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform