title: Read word Doc. using c#
body: <p>I have created an application. The text in the rich textbox is stored in word doc. using word interop dll. Now i want to read the word doc back to my richtextbox.</p>
  
  <p>I used  <code>oDoc.Content.Text</code> to read. Its working but the alignment is not there. I need to load with the same alingment in the word doc.</p>
  
  <p>And also i used <strong>this code</strong></p>
  
  <pre><code>oDoc.Activate();
  oDoc.ActiveWindow.Selection.WholeStory();
  oDoc.ActiveWindow.Selection.Copy()
  IDataObject data = Clipboard.GetDataObject();
  txtdocument.Text = Clipboard.GetDataObject()
         .GetData(DataFormats.Text).ToString();
  </code></pre>
  
  <p>But it throws this error:</p>
  
  <blockquote>
    <p>Object reference not set to an instance of an object.</p>
  </blockquote>