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

Free Support Forum - aspose.com

Comment Text not visible

Comment not showing issue.docx (36.8 KB)
Hi Team,

I have very strange behavior in attached document. Comment test visible when we click Developer -> Design Mode

image.png (16.1 KB)
image.png (45.5 KB)
Can you help me what problem here.

@Vipin_Paliwal This occurs because text in the comments is hidden. Please see Font.Hidden property. You can disable this property for the next inside comments. For example see the Following code:

Document doc = new Document(@"C:\Temp\in.docx");

// Disable Font.Hidden property for all inline nodes, which are children of comments.
doc.GetChildNodes(NodeType.Any, true).Where(n => (n is Inline) && (n.GetAncestor(NodeType.Comment) != null))
    .Cast<Inline>().ToList().ForEach(i => i.Font.Hidden = false);