title: Read dox,docx files with the same style
body: <p>I use below code for read doc,docx files and show them in richtextbox but this way can't show files with the same style.for example if text is with red color richtextbox show it with black color
  what should i do ?</p>
  
  <pre><code> Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.ApplicationClass();
          object nullobj = System.Reflection.Missing.Value;
          object file = openFileDialog1.FileName;
  
          Microsoft.Office.Interop.Word.Document doc = app.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);
  
          doc.ActiveWindow.Selection.WholeStory();
          doc.ActiveWindow.Selection.Copy();
          IDataObject data = Clipboard.GetDataObject();
          string text = data.GetData(DataFormats.Text).ToString();
          Console.WriteLine(text);
          doc.Close(ref nullobj, ref nullobj, ref nullobj);
          app.Quit(ref nullobj, ref nullobj, ref nullobj);
  
          richTextBox1.Text = text;
  </code></pre>