Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - List within a list
Message
De
06/05/2003 09:00:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Automation - List within a list
Divers
Thread ID:
00785308
Message ID:
00785308
Vues:
45
I am processing a file of itms and forming a list using Word Automation. I have included the code below just in case it is needed in order to understand my question. The concept is fairly simple but the implementation seems to elude me.

My code, thus far, will save the position of the range where I wish to have my list begin and then after I have finished inserting each of the list elements, I create the main list. The problem is that one of the list items is also a list and when I attempt to create the final list, that mini-list within the list gets reformatted into the main list.

I would appreciate any insight into this from those with more experience than me. Thanks.


nRangeStart = oRange.Start
GO top
DO WHILE NOT EOF()
IF NOT EMPTY(list_item) && Which may contain a list within it.
oRange.InsertAfter(list_item)
ENDIF
SKIP
ENDDO
oRange.Start = nRangeStart
oRange.ListFormat.ApplyListTemplate(oWord.ListGalleries[1].ListTemplates[1], .f.)
oRange.ParagraphFormat.LeftIndent = nBaseLeftIndent + nOneInch * .50
oRange.ParagraphFormat.FirstLineIndent = nOneInch * -.25
oRange.collapse(wdCollapseEnd)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform