Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Each instance of the Powerpoint COM object shares the same fullscreen display window. I know of no method to switch which presentation has that window</p> <p>The solution is to host the Powerpoint display in your own window</p> <p>This therefore allows you to scale the window and show multiple presentations on one monitor, or move it from one monitor to another?</p> <p>e.g.</p> <pre><code>var display1 = new FullScreenDisplay(); // A form with BorderStyle = None display1.Show(); application1 = new PowerPoint.Application(); presentation1 = application1.Presentations.Open2007(....); var slideShowSettings1 = presentation1.SlideShowSettings; slideShowSettings1.ShowType = PowerPoint.PpSlideShowType.ppShowTypeSpeaker; var slideShowWindow1 = slideShowSettings1.Run(); IntPtr hwnd1 = (IntPtr)slideShowWindow1.HWND; SetParent(hwnd1, display1.Handle); var display2 = new FullScreenDisplay(); display2.Show(); application2 = new PowerPoint.Application(); presentation2 = application2.Presentations.Open2007(....); var slideShowSettings2 = presentation2.SlideShowSettings; slideShowSettings2.ShowType = PowerPoint.PpSlideShowType.ppShowTypeSpeaker; var slideShowWindow2 = slideShowSettings2.Run(); IntPtr hwnd2 = (IntPtr)slideShowWindow2.HWND; SetParent(hwnd2, display2.Handle); display1.BringToFront(); // to show slideshow 1 // or display2.BringToFront(); // to show slideshow 2 // To advance a slide presentation1.SlideShowWindow.View.Next(); // or presentation2.SlideShowWindow.View.Next(); // To exit, note order! presentation2.SlideShowWindow.View.Exit(); presentation1.SlideShowWindow.View.Exit(); Application.Exit(); </code></pre> <p>This is a hack, and may not work in future versions of Powerpoint?</p> <p>You also need this import</p> <pre><code>[DllImport("user32.dll", SetLastError = true)] static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload