Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

Detecting if any change was made in a bookmark Range

$
0
0

Hi,

I would like to detect if any change has been made inside a bookmark range.

I have tried comparing the WordOpenXML against each other, however there's always small changes to the rsid values irrepective of any changes made to the actual content

ie w:rsidP & w:rsidRDefault

Apparently such values are dynamically generated behind the scenes and used for version control.

The closest I can to detecting if a change was made is counting how many elements are in the range

ie bookmark.range.End - bookmark.range.Start

This covers most scenarios but I would still like to detect pure formatting changes and the like. Any suggestions?


Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>