title: Microsoft Word 2007 VSTO, Create table outside word?
body: <p>I am using VSTO to fill data into a table in a Microsoft Word 2007 template. The amount of data varies and filling many pages (+50) takes a lot of time. </p>
  
  <p>The code I use to create a table:</p>
  
  <pre><code>Word.Table table = doc.Tables.Add(tablePosition, 
                                    numberOfRows, 
                                    8, 
                                    ref System.Reflection.Missing.Value, 
                                    ref System.Reflection.Missing.Value);
  </code></pre>
  
  <p>I suspect that the time consumption is due to the communication between Visual Studio (C#) and Word each time I insert data into a cell. If this is the case, it might be faster to create the table in C# and afterwards insert it into Word.</p>
  
  <p>The <em>Microsot.Office.Interop.Word.Table</em> is an abstract class - thus I cannot do this</p>
  
  <pre><code>Word.Table table = new Word.Table();
  </code></pre>
  
  <p>which would have been handy.</p>
  
  <p>Are there other possibilities when just using VSTO?</p>