PowerPoint.Application pptApp = new PowerPoint.Application(); //pptApp.Visible = Office.MsoTriState.msoTrue; //pptApp.ShowWindowsInTaskbar = Office.MsoTriState.msoFalse; //pptApp.Left = 0; PowerPoint.Presentation oPre = pptApp.Presentations.Open("D:\\Document\\1.pptx", Office.MsoTriState.msoTrue, Office.MsoTriState.msoFalse, Office.MsoTriState.msoFalse); PowerPoint.SlideShowSettings oSlideShowSettings = oPre.SlideShowSettings; oSlideShowSettings.LoopUntilStopped = Office.MsoTriState.msoFalse; oSlideShowSettings.ShowType = PowerPoint.PpSlideShowType.ppShowTypeWindow; oSlideShowSettings.ShowWithNarration = Office.MsoTriState.msoFalse; oSlideShowSettings.ShowWithAnimation = Office.MsoTriState.msoTrue; oSlideShowSettings.AdvanceMode = PowerPoint.PpSlideShowAdvanceMode.ppSlideShowManualAdvance; oSlideShowSettings.ShowScrollbar = Office.MsoTriState.msoFalse; PowerPoint.SlideShowWindow oSlideShowWindow = oSlideShowSettings.Run(); int pptHwnd = pptApp.HWND; IntPtr hPPTWnd = new IntPtr(pptHwnd); ShowWindow(hPPTWnd, SW_HIDE);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)