/ Published in: C#
This code snippet removes any comments from a word document. The comments can be something like [this screenshot](https://www.dropbox.com/s/hm4kpqnjlniqch0/comments-word-doc.png?dl=0)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/// <summary> /// Removes document comments of Doc file /// </summary> public static void RemoveComments() { try { // initialize DocFormat // remove comments docFormat.ClearComments(); // save file in destination folder docFormat.Save(Common.MapDestinationFilePath(filePath)); Console.WriteLine("File saved in destination folder."); } catch (Exception exp) { Console.WriteLine(exp.Message); } }