title: Copying Powerpoint(2007) Slide in C#
body: <p>I am using VS 2005 for Powerpoint Automation .What I am trying to do here is open existing PPT from specified location and write data to it.In some slides I have table structure,these tables are filled from Dataset in code.However the problem here is if the table in PPT have lets say 10 rows and Dataset has 20 or 30 which is more than 10 rows Now for this if there are 30 rows in Dataset then i exactly need 3 similar slides.How shall I duplicate the table structure in PPT using C# <strong>prior to filling the PPT Table</strong> .
  Till now what i have used is this</p>
  
  <pre><code>                   double SlideCount=0;
                      if (DS.Tables[0].Rows.Count &gt; 10)
                      {
                          SlideCount = (DS.Tables[0].Rows.Count) / 10;
  
                          SlideCount = Math.Round(double.Parse(SlideCount.ToString()));
  
                          for (int i = 0; i &lt; SlideCount; i++)
                          {
                              //Code to Duplicate slide
                          }
                        }
  </code></pre>
  
  <p>my ultimate goal is to eliminate blank Slides</p>