Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Goto Bookmark in Word document
Message
De
08/05/2003 08:04:32
 
 
À
07/05/2003 20:56:12
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00786077
Message ID:
00786154
Vues:
42
>I’m using VFP to automate a Word document.
>
>I need to go to a specific bookmark in order to place some data in it.

The best way to do this is similar to what Daniel showed you, but avoids using the Select object:

oBookmark = This.oWord.ActiveDocument.Bookmarks(lcMarcador).Range()

Now you have a range object to manipulate that is exactly the bookmark area.

>My code looks like this: this.oWord.ActiveDocument.goto(-1, 1, 1, lcMarcador)

If you really want to do it this way, the secret is that you have to omit the second and third parameters to make it work:

This.oWord.ActiveDocument.Goto(-1,,,lcMarcador)

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform