title: C# adding row to table in word document dynamically
body: <p>I'm trying to fill a word document based on a template in C#.
  I'm using bookmarks to mark the beginning of a table</p>
  
  <pre><code>Bookmark b = oWordDoc.Bookmarks["Bugs_Start"];
  
  Word.Range range = b.Range; // = oWordDoc.Range(ref oBookmarkStart, ref oBookmarkEnd);
  object unit = WdUnits.wdCell;
  object count = 1;
  while (dataExist)
  {
  range.InsertAfter("cell text");                
      range = range.Next(ref unit, ref count);
  
      range.InsertAfter("cell text");                
      range = range.Next(ref unit, ref count);
  }
  </code></pre>
  
  <p>the template has only 3 rows in the table and sometime i need to add more rows to the table. How can I add more rows while i'm in the while loop?</p>
  
  <p>If someone has a better idea of how to do it I will be glad to see a better way to implement this.
  Thanks.</p>