I am trying to build an windows 8.1 app that open powerpoint file from local computer in full screen, and within that it contain three buttons to perform next ,previous and exit. I was able to do so using winform but not in WPF. In winform I used panel control in which I embedded the ppt. panel is replaced by canvas in WPF but I do not know how I can embed ppt in it. is there any other approach than this please share? I can not use XPS as it does not support any animation.
//System.Diagnostics.Process.Start("POWERPNT.EXE", "C:/Users/SAURABH/Desktop/office/Engineer's.pptx");
// Microsoft.Office.Interop.PowerPoint.Application application;
// // For Display in Panel
// IntPtr screenClasshWnd = (IntPtr)0;
// IntPtr x = (IntPtr)0;
// application = new Microsoft.Office.Interop.PowerPoint.Application();
// Microsoft.Office.Interop.PowerPoint.Presentation presentation = application.Presentations.Open(@"C:\Users\delink\Documents\SAMPLE_PPT.pptx", MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);
// pptViewPanel.Children.Add(application as Control);
// //pptViewPanel.Controls.Add(application as Control);
// Microsoft.Office.Interop.PowerPoint.SlideShowSettings sst1 = presentation.SlideShowSettings;
// sst1.LoopUntilStopped = Microsoft.Office.Core.MsoTriState.msoTrue;
// Microsoft.Office.Interop.PowerPoint.Slides objSlides = presentation.Slides;
// sst1.LoopUntilStopped = MsoTriState.msoTrue;
// sst1.StartingSlide = 1;
// sst1.EndingSlide = objSlides.Count;
// // pptViewPanel.Dock = DockStyle.Fill;
// sst1.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeKiosk;
// Microsoft.Office.Interop.PowerPoint.SlideShowWindow sw = sst1.Run();
// //sw=Objssws
// oSlideShowView = presentation.SlideShowWindow.View;
// IntPtr pptptr = (IntPtr)sw.HWND;
// SetParent(pptptr, pptViewPanel.handle);**"**this where I am getting-"in 'pptviewpanel.handle'"** rror"**