Hi Guys,
Hi Jan,
The issues you have found earlier (filed as WORDSNET-10901) have been fixed in this Aspose.Words for .NET 17.8 update and this Aspose.Words for Java 17.8 update.
The issues you have found earlier (filed as WORDSNET-9959) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.
Regarding WORDSNET-9959, starting from the 17.10 versions of Aspose.Words for .NET and Aspose.Words for Java APIs, we have added AddReply, RemoveReply and RemoveAllReplies new public methods to the Comment class. These can be used to add or remove a reply to/from a comment inside Word document. You can also remove all the replies from a comment using RemoveAllReplies method.
C# code to first remove a reply from comment and then add a new reply to a comment in Word document using Aspose.Words for .NET API is as follows:
Document doc = new Document(fileName);
Comment comment = (Comment)doc.GetChild(NodeType.Comment, 0, true);
comment.RemoveReply(comment.Replies[1]);
comment.AddReply("John Doe", "JD", new DateTime(2017, 9, 25, 12, 15, 0), "New reply");
doc.Save(outFileName);
Regarding WORDSNET-10901, it is to inform you that we had also added Comment.Done Property in Aspose.Words API that can be used to get or set a flag indicating that the comment in Word document has been marked as done or not.
The following C# example of Aspose.Words for .NET shows as to how to mark a Comment as Done.
Document doc = new Document(MyDir + "Comments.docx");
NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true);
Comment comment = (Comment)comments[0];
CommentCollection repliesCollection = comment.Replies;
foreach (Comment childComment in repliesCollection)
{
if (!childComment.Done)
{
// Update comment reply Done mark
childComment.Done = true;
}
}