Information générale
Catégorie:
Contrôles ActiveX en VFP
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement