PowerPoint.Application pptApp = new PowerPoint.Application(); pptApp.Visible = Office.MsoTriState.msoTrue; var pptPresent = pptApp.Presentations; var fileOpen = pptPresent.Open(@file, Office.MsoTriState.msoFalse, Office.MsoTriState.msoTrue, Office.MsoTriState.msoTrue); // getting first slide PowerPoint.Slide objSlide = fileOpen.Slides[1]; //Create activex object ShockwaveFlash objswf = new ShockwaveFlash(); objswf.Movie = "#"; //how to add this object on ppt slide.. // saving the ppt fileOpen.SaveAs("test.pptx", PowerPoint.PpSaveAsFileType.ppSaveAsDefault, Office.MsoTriState.msoTrue); // close the ppt fileOpen.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)