Issue with listnum track changes(Revisions)
Tagged: listnum Trackchanges
February 9, 2017 at 11:50 am #4143
I have turned on the track changes(Revisions) option in word and made some changes and found all the track changes were being tracked and found in the openxml content. but i am not seeing the deleted listnum value in openxml content and the listnum values are continued from the next paragraph. so how can I track/get the deleted listnum value in openXml.
ManuFebruary 9, 2017 at 12:33 pm #4144
I am not quite clear about your question – need more info.
With regards to the deleted listnum, what exactly are you referring to? In Word itself, we see the list items, which is the displayed representation of any paragraph that has list numbering. In the open xml markup, there is the listnum attribute for every paragraph that has list numbering. You can find this listnum attribute in the paragraph itself, or in the styles part for the specific style.
The styles part contains tracked revisions, including changes to styles where numbering has changed.
With regards to calculating the list item for any paragraph (what the ListItemRetriever.cs module does), processing list items is pretty complicated. It took several tries before I found every numbering bug in ListItemRetriever.cs. But ListItemRetriever.cs presumes that there are no tracked revisions. I have not yet contemplated the problem of determining list items in a document that contains tracked revisions.
Please give me more information with specifics, and I’ll be happy to help 🙂
Cheers, EricFebruary 9, 2017 at 3:06 pm #4145
Thanks for the reply Eric!
Actually we have 5 paragraphs with listnums (a) to (e). I turned on track changes and deleted listnum value (b) so that second paragraph has no listnum now. I thought I might get the value (b) in openxml since I turned on track changes but I am not able to get the deleted value (b) from openxml.
ManuFebruary 13, 2017 at 1:07 pm #4146
Is there any workaround for the above scenario?
ManuFebruary 14, 2017 at 4:51 am #4147
The list items are never stored in the content. They are always calculated. A change in list numbering does not affect this. You can detect that the list numbering has changed, but if you actually want the deleted list items, it is pretty complicated, and not at your fingertips.
I guess that I would need to hear more about the problem you are trying to solve. What is your user scenario?
Best, EricFebruary 14, 2017 at 9:29 am #4148
Like I said in my previous post I need the value of deleted list item (b), Because without that the paragraph is being printed without any list number.
So how can I get or calculate the deleted list number?
ManuFebruary 15, 2017 at 10:23 am #4149
You must be logged in to reply to this topic.