title: C# word interop tables shapes positions
body: <p>I'm trying to do the following:
  Insert an arrow based on the value in a cell in a table.
  This part, I have working just fine.
  The color of the arrow should be conditional, and works equally fine.</p>
  
  <p>But my problem is this:
  How can I identify the correct position to place it.
  I have concluded this to 2 problems:</p>
  
  <p><strong>vertically</strong>: spanning pages. For 1 page, it works, as soon as I try it for the 2nd page, it places the shapes on the first one.<br>
  <strong>Horizontally</strong>: the right posistion relative to the text that is entered in the table.</p>
  
  <p>This is the code for the vertical positioning that I have now:</p>
  
  <pre><code>private float getVertical(Word.Range r)
      {
          return (float)r.Characters.Last.get_Information(
              Microsoft.Office.Interop.Word.WdInformation.wdVerticalPositionRelativeToPage);
      }
  </code></pre>
  
  <p>the code for horizontal(basically add the width of every cel on the same row to 2 thirds of the width of the actual cell)</p>
  
  <pre><code> private float getHorizontal(Word.Range r, Word.Table tab, int col)
      {
          float i1, i2 = 0.0f, i3;
          i1 = (tab.Cell(2, col).Width / 3) * 2;
          int i;
          for (i = 1; i &lt; col; i++)
          {
              i2 += tab.Cell(2, i).Width;
          }
          i3 = i1 + i2;
          return i3;
      }
  </code></pre>
  
  <p>any and all suggestions are welcomed and appreciated,</p>
  
  <p>Greetings</p>
  
  <p>ShadowFlame</p>