title: Using array in for cycle in Word Interop
body: <p>I should insert text to new page every each cycle. Every each I insert text by <code>rng.Text = array[i].ToString()</code> and it´s gone well, but first item of array is inserted on the last page and with bad alignment.</p>
  
  <pre><code>object what = Word.WdGoToItem.wdGoToPage;
  object which = Word.WdGoToDirection.wdGoToAbsolute;
  object count = null;
  
  //countFor is count of items in my array
  for (int i = 0; i &lt; countFor; i++)
  {
      count = i;
      object range = winword.Selection.GoTo(ref what, ref which, ref count, ref oMissing);
      object beginPageTwo = winword.Selection.Range.Start;
      object beginNextRng = winword.Selection.Range.StartOf();
      object end = winword.Selection.Range.End;
  
      Word.Range rng = winword.ActiveDocument.Range(beginPageTwo, end);
      Word.Range rng2 = winword.ActiveDocument.Range(beginPageTwo, end);
      Word.Range rng3 = winword.ActiveDocument.Range(beginPageTwo, end);
      Word.Range rng4 = winword.ActiveDocument.Range(beginPageTwo, end);
      Word.Range rng5 = winword.ActiveDocument.Range(beginPageTwo, end);
  </code></pre>