title: Reading 2010 Word File
body: <p>I have added a reference to <code>Microsoft.Office.Interop.Word 12.0.0.0</code>. I have Visual Studio 2008 and Microsoft Word 2010(Starter).</p>
  
  <pre><code>string filePath = @"C:\PP.docx";
  Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.ApplicationClass();
  
  // create object of missing value
  object miss = System.Reflection.Missing.Value;
  
  // create object of selected file path 
  object path = filePath;
  
  // set file path mode 
  object readOnly = false;
  
  // open document                 
  Microsoft.Office.Interop.Word.Document docs = word.Documents.Open(ref path, ref miss, ref readOnly, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss);
  
  // select whole data from active window document
  docs.ActiveWindow.Selection.WholeStory();
  
  // handover the data to cllipboard 
  docs.ActiveWindow.Selection.Copy();
  
  // clipboard create reference of idataobject interface which transfer the data
  System.Windows.Forms.IDataObject data = Clipboard.GetDataObject();
  </code></pre>
  
  <p>I get the error mentioned below:</p>
  
  <blockquote>
    <p>Retrieving the COM class factory for component with CLSID
    {000209FF-0000-0000-C000-000000000046} failed due to the following
    error: 80040154. at  Microsoft.Office.Interop.Word.Application word => new Microsoft.Office.Interop.Word.ApplicationClass();</p>
  </blockquote>
  
  <p>Thanks,
  Sachin K</p>