title: Open Powerpoint Presentation from Window Form
body: <p>I am working on Office PowerPoint 2007 using c#. </p>
  
  <p>I want to open the power point document. I have attached code snippet.</p>
  
  <p>I also added the reference to <code>Microsoft.Office.Interop.PowerPoint.dll</code></p>
  
  <pre><code>  Microsoft.Office.Interop.PowerPoint.Application ppApp = new Microsoft.Office.Interop.PowerPoint.Application();
          ppApp.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;
          Microsoft.Office.Interop.PowerPoint.Presentations oPresSet = ppApp.Presentations;
          Microsoft.Office.Interop.PowerPoint._Presentation oPres = oPresSet.Open(@"D:\Office Guru Support Files\temp.pptx", Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse,
          Microsoft.Office.Core.MsoTriState.msoTrue);
  </code></pre>
  
  <p>But I got error message like this </p>
  
  <blockquote>
    <p>The type 'Microsoft.Office.Core.MsoTriState' is defined in an assembly that is not referenced. You must add a reference to assembly 'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.</p>
  </blockquote>