Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Call the DeleteAllComments method of the Document from which you want to remove comments.The following code example removes all comments from the active document. To use this code example, run it from the ThisAddIn
class in your project.
this.Application.ActiveDocument.DeleteAllComments();
Below is the code to remove comments from the document.
string FileName = "YourFileName.docx";
Document doc = new Document(FileName);
// Collect all comments in the document
NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true);
// Remove all comments.
comments.Clear();
For more details you can go here
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.