Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Bullets
Message
De
29/12/2003 10:00:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00862286
Message ID:
00862488
Vues:
14
>How do you add bullets to an MS Word document using VFP?
>

I assume you're looking for the kind of bullets you'd get using the Bullets button on the toolbar or from Format | Bullets & Numbering. The internal structure of this stuff in Word is fairly complex, and to totally understand it, you need to stare at if for a while. (If you have my book "Microsoft Office Automation with Visual FoxPro," take a look at pages 71-77.)

To use bullets, you need to add the text to the document first, create a range based on it and then issue:

oRange.ListFormat.ApplyListTemplate( oListTemplate)

where oListTemplate is an object reference to the particular numbering template you want to apply. You get the reference to oListTemplate by pulling it out of the ListGalleries collection. For standard bullets with no nesting, use:

oListTemplate = oWord.ListGalleries(1).ListTemplates(1)

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

Click here to load this message in the networking platform