Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bulleted list in a Table in Word
Message
De
04/01/2012 13:10:15
 
 
À
04/01/2012 10:21:37
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Divers
Thread ID:
01532163
Message ID:
01532178
Vues:
55
>Word 2007
>
>Hi all
>
>This is the last thing I need to get working. I'm trying to create a bulleted list in a Table in Word so when a line of text wraps, it gives the indent that's needed. I went into Word, started recording a macro, set up a table, then set up the list within. The macro code works beautifully every time I run it in Word.
>
>Once I translate it into VFP, however, it seems to be applying the style to the entire table, not the subset of the cell that I want, and this happens when the line oRow.ListFormat.ApplyListTemplateWithLevel(oApp.ListGalleries(wdNumberGallery).ListTemplates(1),.F., wdListApplyToThisPointForward, 2) is executed. Word Macro code is available upon request.
>
>What am I not getting?

Without looking at the details of the code, I'm a big believer in collapsing the range after each operation:
oRange.Collapse(0)
collapses to the end of the range. Sometimes, you also need a paragraph marker or two to keep formatting to only the part you want formatted.

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

Click here to load this message in the networking platform