I would expect this code to make a copy of the first slide and insert it at position 10 based upon the documentattion. The slide deck has over 20 slides and the following code copies the first slide to the end of the deck. Should I be using another method to copy the first slide to a position somewhere in the middle of a deck?
Thank you for your assistance.
Presentation.CloneSlide Method (Slide, Int32)
Makes a copy of a slide.
Parameters
srcSlide Source slide.
position Position of a new slide.
var fis = new System.IO.FileStream(MapPath("~/Application") + "\\Temp.ppt", System.IO.FileMode.Open, System.IO.FileAccess.Read);
var pres = new Presentation(fis);
var slides = pres.Slides;
fis.Close();
pres.CloneSlide(slides[0], 10);