title: OpenXML, PresentationML Table Height and Row Height on word wrap
body: <p>I'm new to Open Xml, and have created a reporting application using Open Xml SDK. It populates the data in to a table, and when the table height exceeds slide border clone the slide and  and populate the next set of data in new slides and so on. All works fine but when some of the rows have data that wraps to 2 lines fails to break in to new page at the exact place. Seems the reason is the Open Xml still returns the row height as same as the row height when there is single line of data. Is there anyway of resolving this.</p>
  
  <p>Here is the a piece of code that does the pagination logic (CreateTextCell is a method that creates the text cell and return):</p>
  
  <pre><code>  var tbl = current.Slide.Descendants&lt;A.Table&gt;().First();
                  var tr = new A.TableRow();
                  tr.Height = 200000;
                  tr.Append(CreateTextCell(product.Name));
                  tr.Append(CreateTextCell(product.ProductNumber));
                  tr.Append(CreateTextCell(product.Size));
                  tr.Append(CreateTextCell(String.Format("{0:00}", product.ListPrice)));
                  tr.Append(CreateTextCell(product.SellStartDate.ToShortDateString()));
                  tbl.Append(tr);
                  totalHeight += tr.Height;
  
  
  
                  if (totalHeight &gt; pageBorder)
                      overflow = true;
  </code></pre>