We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word Comments


How dose aspose render comments added by user during track changes. for us it comes as text andh gets appended before the marked area.

Thanks & Regards,

Kumar Sabnis


Thanks for your request. Unfortunately, currently there is no way to render comments and revision marks using Aspose.Words. In one of future versions of Aspose.Words we will consider adding an ability to show revisions and comments in the rendered documents (PDF, XPS, SWF, Image). Your request has been linked to the appropriate issue. We will let you know once this feature is available.

Best regards,


the comment added is comming as a plan text to us when we render the document to display it on UI.

Is Word also the part of the list mentioned for rendered file types.


Kumar Sabnis


Document doc = new Document(“C:/test 1.doc”);
NodeCollection formFieldCollection = doc.getChildNodes(NodeType.COMMENT, true);

for (int k=0;k<formFieldCollection.getCount();k++)
Comment comment = (Comment) formFieldCollection.get(k);
// System.out.println(comment.getText());

here comment.getParentNode().getText() should return me the text for which comment is added? right?

here i am getting the part of paragraph.

where can i ge tthe text for which comment is added?




Thanks for your request. A comment is an annotation which is anchored to a region of text or to a position in text. A comment can contain an arbitrary amount of block-level content.

If a Comment object occurs on its own, the comment is anchored to the position of the Comment object.

To anchor a comment to a region of text three objects are required: Comment, CommentRangeStart and CommentRangeEnd. All three objects need to share the same Id value.

Actually commented range can be anywhere. It can be before comment, after comment, it can be even in another paragraph. You should use CommentID to identify whether range corresponds to the particular comment.

Please see the following link t learn more:


Best regards,


Can u provide a test program for this?


Kumar Sabnis


Thanks for your inquiry. Please see the following link to find the code which will allow you to get “commented text”:


Best regards,

The issues you have found earlier (filed as WORDSNET-2121) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.