title: How to add items one at a time to to a new line a word document using word interop
body: <p>I am trying to add these three types of content into a word doc. This is how I am trying to do it now. However, each item replaces the last one. Adding images always adds to the beginning of the page. I have a loop that calls a function to create the headers and tables, and then adds images after. I think the problem is ranges. I use a starting range of object start = 0; </p>
  
  <p>How can I get these to add one at a time to to a new line in the document?</p>
  
  <pre><code>foreach (var category in observedColumns)
              {
  
                  CreateHeadersAndTables();
                  createPictures();
              }
  </code></pre>
  
  <p>Adding Headers:       </p>
  
  <pre><code>                object start = 0;
                  Word.Range rng = doc.Range(ref start , Missing.Value);
                  Word.Paragraph heading;
                  heading = doc.Content.Paragraphs.Add(Missing.Value);
                  heading.Range.Text = category;
                  heading.Range.InsertParagraphAfter();
  </code></pre>
  
  <p>Adding Tables: </p>
  
  <pre><code>            Word.Table table;
              table = doc.Content.Tables.Add(rng, 1, 5);
  </code></pre>
  
  <p>Adding Pictures:</p>
  
  <pre><code>            doc.Application.Selection.InlineShapes.AddPicture(@path);
  </code></pre>