Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Bullets
Message
 
À
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:
00863411
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
Thanks Dr. Granor--that's exactly what I needed. I just downloaded your book from Amazon. Didn't know such a book existed. I'm happy for it--thank you.

JR
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com
(941) 743-0108
(800) 246-5488
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform