Hi,
I am trying to use the comments functionality of Aspose.Words for the following case:
One document which will be sent (locked) to two or more users to comment using Microsoft Word.
These users will sent their saved documents back and I want to combine those documents (using the original) into one document with all their comment in it (on the correct locations).
(So that this functionality of Word doesn’t have to be done manually)
Using the information from this blog post I already have retrieved the comments from the sent files, including their locations (which are stored CommentRangeStart and CommentRangeEnd objects).
But how can I translate these two objects to locations in the original document?
Another problem I thought of is that the objects parentnode are always of the paragraph type.
Which (I think) could cause problems when trying to translate to an exact location in the original document, if the original text would have been: “This is a test string” and the comment is made inside that string ([, ] denotes the start and end of the comment) like so “This is a te[st strin]g”.
In this cause the paragraph node will contain multiple inline level nodes (like the comment, commentstartrange, commentendrange, three runs with the texts), what would be a good way to handle this?
With kind regards,
Sjoerd van Loon
Software Developer, Infoland BV