Incrustar PowerPoint Viewer en C # Win Form
¿Es posible incrustar un visor de PowerPoint en un formulario de Windows C #?
Actualmente estoy usando el siguiente código:
objApp = new PowerPoint.Application();
//objApp.Visible = MsoTriState.msoTrue;
objPresSet = objApp.Presentations;
objPres = objPresSet.Open(ppsAction.FileInfo.FullName, MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);
objSlides = objPres.Slides;
//Run the Slide show
objSSS = objPres.SlideShowSettings;
objSSS.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeSpeaker;
objSSS.LoopUntilStopped = MsoTriState.msoTrue;
objSSS.Run();
WindowWrapper handleWrapper = new WindowWrapper(objPres.SlideShowWindow.HWND);
SetParent(handleWrapper.Handle, this.ApplicationPanel.Handle);
this.ApplicationPanel.Visible = true;
objPres.SlideShowWindow.Height = ApplicationPanel.Height;
objPres.SlideShowWindow.Width = ApplicationPanel.Width;
objPres.SlideShowWindow.Top = 0;
objPres.SlideShowWindow.Left = 0;
Muestra al espectador en el formulario, pero la ubicación y el tamaño son incorrectos. ¿Cómo un tamaño y colocarlo correctamente.
Otra opción:
Me he encontrado con la aplicación Aximp.exe destinada a mostrar los controles ActiveX en Win Forms en C #. ¿Cómo usaría esto con el Visor de PPT?