>>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