Hi
I try to convert ppt to video:;
i know that CreateVideo is part of presentation. but, when i try this i have this error:
Inline Code Example Here
Looks like createvideo is not part of presentation.
Microsoft.Office.Interop.PowerPoint.Application pptApplication = new Microsoft.Office.Interop.PowerPoint.Application();
Microsoft.Office.Interop.PowerPoint.Slides slides;
Microsoft.Office.Interop.PowerPoint._Slide slide;
Microsoft.Office.Interop.PowerPoint.TextRange objText;
// Create the Presentation File
Presentation pptPresentation = pptApplication.Presentations.Add(MsoTriState.msoTrue);
Microsoft.Office.Interop.PowerPoint.CustomLayout customLayout = pptPresentation.SlideMaster.CustomLayouts[Microsoft.Office.Interop.PowerPoint.PpSlideLayout.ppLayoutText];
// Create new Slide
slides = pptPresentation.Slides;
slide = slides.AddSlide(1, customLayout);
Microsoft.Office.Interop.PowerPoint.Shape shape = slide.Shapes[1];
string picturePath = Directory.GetCurrentDirectory()+ @"/Untitled.jpg";
slide.Shapes.AddPicture(picturePath, MsoTriState.msoTrue,
MsoTriState.msoFalse, shape.Left, shape.Top, shape.Width, shape.Height);
slide = slides.AddSlide(2, customLayout);
slide.Shapes.AddPicture(picturePath, MsoTriState.msoTrue,
MsoTriState.msoFalse, shape.Left, shape.Top, shape.Width, shape.Height);
Microsoft.Office.Interop.PowerPoint.Presentation preVideo;
preVideo.CreateVideo("movie.mwv"); //ERROR