title: Split table to multiple slides in PowerPoint file
body: <p>I'm using <a href="https://www.gemboxsoftware.com/presentation" rel="nofollow noreferrer">GemBox.Presentation</a> and I'm creating a large table in my PPTX file. Similar to <a href="https://www.gemboxsoftware.com/presentation/examples/powerpoint-tables/601" rel="nofollow noreferrer">this example</a>, e.g.:</p>
  
  <pre><code>PresentationDocument presentation = new PresentationDocument();
  Slide slide = presentation.Slides.AddNew(SlideLayoutType.Custom);
  
  int rowCount = 100;
  
  int columnCount = 4;
  int columnWidth = 5;
  
  Table table = slide.Content.AddTable(1, 1, columnCount * columnWidth, 0, LengthUnit.Centimeter);
  
  for (int i = 0; i &lt; columnCount; i++)
      table.Columns.AddNew(Length.From(5, LengthUnit.Centimeter));
  
  for (int r = 0; r &lt; rowCount; r++)
  {
      TableRow row = table.Rows.AddNew(0);
      for (int c = 0; c &lt; columnCount; c++)
      {
          TableCell cell = row.Cells.AddNew();
          TextParagraph paragraph = cell.Text.AddParagraph();
          TextRun run = paragraph.AddRun(string.Format("Cell {0}-{1}", r + 1, c + 1));
      }
  }
  
  presentation.Save("output.pptx");
  </code></pre>
  
  <p>As expected, the table doesn't fit on the slide:</p>
  
  <p><a href="https://i.stack.imgur.com/SeyAb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SeyAb.png" alt="PowerPoint slide with large table that doesn&#39;t fit"></a></p>
  
  <p>So I need to split this table into multiple tables or multiple slides so that each table fits on its slide and all rows are visible.</p>
  
  <p>How can I do that?<br>
  How can I find if the new <code>TableRow</code> will exceed the <code>Slide</code> height?</p>