Hi Guys, I'm trying to split a multi-slide PPT into multiple files. One file per slide. The result always seems to have two pages.
I've tried removig the 1st slide using slides.remove() but that doesn't seem to work. Does anyone have any ideas here?
License license = new License();
string testFile = @"C:\\temp\Test.ppt";
Presentation pres = new Presentation(testFile);
for (int i = 1; i <= pres.Slides.Count; i++)
//Accessing a slide using its slide position
Slide slide = pres.GetSlideByPosition(i);
Presentation zNewPres = new Presentation();
//Writing the presentation as a PPT file
zNewPres.Write("C:\\temp\\Slide" + i + ".ppt");