In my programm code I want to read specific string from my word file and want to create table after that string. I do not have much idea about how can i do that. It will be very helpful if some can help me!!
Till now I know only how to open a word file but dont know how to read specific string value and create table.
Thanks in Advance.
object oMissing = System.Reflection.Missing.Value;
object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */
//Start Word and Open existing Safety device Word file document.
Word._Application OpenWord;
Word._Document OpenDoc;
OpenWord = new Word.Application();
OpenWord.Visible = true;
OpenWord.WindowState = Word.WdWindowState.wdWindowStateMaximize;
OpenDoc = OpenWord.Documents.Open(FilenametextBox.Text, ref oMissing, ref oMissing, ref oMissing);
Word.Document wordDocument = OpenDoc as Word.Document;
wordDocument.Activate();
I want to read "Tool change" string from word file. then create some table and fill the table with data