aveBHS

Doc parser C#

Jul 7th, 2021 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. var word = new Microsoft.Office.Interop.Word.Application();
  2. string document = word.Documents.Open(documentName, false).Content.Text.ToLower();
  3. word.Quit();
  4. System.Runtime.InteropServices.Marshal.ReleaseComObject(word);
Add Comment
Please, Sign In to add comment