Issue with listnum track changes(Revisions)
Home › Forums › WordprocessingML › Issue with listnum track changes(Revisions)
Tagged: listnum Trackchanges
This topic contains 6 replies, has 2 voices, and was last updated by Manu_TR 7 years, 9 months ago.
-
AuthorPosts
-
February 9, 2017 at 11:50 am #4143
Hello,
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.
Thanks,
ManuFebruary 9, 2017 at 12:33 pm #4144Hi Manu,
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, Eric
February 9, 2017 at 3:06 pm #4145Thanks 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.
Thanks
ManuFebruary 13, 2017 at 1:07 pm #4146Eric,
Is there any workaround for the above scenario?
Thanks,
ManuFebruary 14, 2017 at 4:51 am #4147Hi Manu,
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, Eric
February 14, 2017 at 9:29 am #4148Eric,
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?Thanks
ManuFebruary 15, 2017 at 10:23 am #4149 -
AuthorPosts
You must be logged in to reply to this topic.