title: Create a Word document with C#?
body: <p>I'm trying to create a Word document with C# in visual studio 2008, this is my code:</p>
  
  <pre><code>using Word = Microsoft.Office.Interop.Word;
  
  Word.Application oWord = new Word.Application();
  oWord.Visible = true;
  </code></pre>
  
  <p>Visual studio shows me the error:</p>
  
  <blockquote>
    <p>Invalid token '=' in class, struct, or interface member declaration</p>
  </blockquote>
  
  <p>Why does this happen?</p>