Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bulleted list in a Table in Word
Message
From
04/01/2012 13:10:15
 
 
To
04/01/2012 10:21:37
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01532163
Message ID:
01532178
Views:
57
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform