How to get text from line number in MS Word
Is it possible to get text (line or sentence) from a given line number in MS Word using office automation? I mean its ok if I can get either the text in the given line number or the sentence(s) itself which is a part of that line. I am not providing any code because I have absolutely no clue how an MS Word is read using office automation. I can go about opening the file like this: var wordApp = new ApplicationClass(); wordApp.Visible = false; object file = path; object misValue= Type.Missing; Word.Document doc = wordApp.Documents.Open(ref file, ref misValue, ref misValue, ref misValue, ref