[Word] difference behavior of Word.range from Tracked Change between native and online #5334
Labels
Area: Word
Issue related to Word add-ins
Platform: Online
Issues occurred on online platform
Status: under investigation
Issue is being investigated
Provide required information needed to triage your issue
We are implementing an automatic text update program in Word AddIn.
We need to update the document with take care of the tracked change histories.
To do this, we need to retrieve the TrackedChange object and its surrounding text,
but we are having trouble because the retrieved text is different between Native Word and Word Online.
Your Environment
Expected behavior
Native Word and Word Online should return same results.
By the live example:
Current behavior
Word Online: Left range and right range contains the text of tracked change itself.
Native Word: Left range and right range does not contain the text of tracked change itself.
Word Online by the live example:
Steps to reproduce
Link to live example(s)
Provide additional details
Context
We are implementing an automatic text update program (sort of proofreading) in Word AddIn.
We need to update the document with take care of the tracked change histories.
To do this, we need to retrieve the TrackedChange object and its surrounding text,
but we are having trouble because the retrieved text is different between Native Word and Word Online.
e.g.
Document text is "a a a" and center "a" is deleted by tracked change.
And then our text base proofreading engine expect "a a" should be updated to "a b".
We need to skip the center 'a' (because it is deleted), and we need to update 3rd 'a' to 'b'.
So, it is important to check the tracked change text and surrounding texts.
Useful logs
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
The text was updated successfully, but these errors were encountered: