Dear Team,
How to highlights the comment with color in the word document using aspose java. I have attached the sample document .
LEOUT_test1.zip (36.3 KB)
Best regards,
Kesavaraman
Dear Team,
How to highlights the comment with color in the word document using aspose java. I have attached the sample document .
LEOUT_test1.zip (36.3 KB)
Best regards,
Kesavaraman
Please use the following code example to highlight the comments of Word document. Hope this helps you.
Document doc = new Document(MyDir + "LEOUT_test1.docx");
for (Comment comment : (Iterable<Comment>) doc.getChildNodes(NodeType.COMMENT, true))
{
for (Run run : (Iterable<Run>) comment.getChildNodes(NodeType.RUN, true))
{
run.getFont().setHighlightColor(Color.YELLOW);
}
}
doc.save(MyDir + "output 21.1.docx");