I have a content control field as 1 of the items in a enumerated list. How can I add further items (unknown number of items) to the list so that the item number gets incremented?
For eg this is the MS Word formatted enumerated list:
a) A sentence item.
b) <controlFieldItem>
The binding to Content control is done first with Word Content toolkit, then I use CustomXMLPart to replace template xml with data.
If I insert data using XML binding to the content control () the item is there. But I would like to able to add more items and the numbering to increment.
I think if if insert newline/return characters after each item to add in that field then the field will just have a new line within the item rather than create a new item in the list.
I could not find any list based content control fields, do these exist? How would I achieve this? Is it possible with Open XML library? Already using asp.net library to replace custom XML.