Note that there are some explanatory texts on larger screens.

plurals
  1. POC# - Show PowerPoint Presentations continous
    text
    copied!<p>I want to play some <code>ppt</code> files in a continuous loop, but when I open a new File after the first has reached its last slide, a new PowerPoint window opens and starts the Slide. How can I solve that problem?</p> <pre><code> public Microsoft.Office.Interop.PowerPoint.SlideShowWindow startppt(string pptDatei) { WatchingLabel.Text = "Präsentation läuft..."; started = true; ende = false; objPres = ppApp.Presentations.Open(pptDatei, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoTrue); objPres.SlideShowSettings.ShowWithAnimation = Microsoft.Office.Core.MsoTriState.msoTrue; presWin = objPres.SlideShowSettings.Run(); return presWin; } private void timer1_Tick(object sender, EventArgs e) { WatchingLabel.Text = "Watching..."; if (System.IO.Directory.Exists(ordner)) { pptDatei.Clear(); pptDatei.AddRange(System.IO.Directory.GetFiles(ordner, "*.ppt")); if (started == true &amp;&amp; presWin.View.State == Microsoft.Office.Interop.PowerPoint.PpSlideShowState.ppSlideShowDone) { objPres.Close(); ende = true; started = false; } if (pptDatei.Count &gt; 0 &amp;&amp; ende &amp;&amp; started == false) { if (index &lt; pptDatei.Count) { startppt(pptDatei[index]); index += 1; } else { index = 0; } } else if (pptDatei.Count &gt; 0 &amp;&amp; ende == false &amp;&amp; started == true) { presWin.View.Next(); } } } public void ppApp_PresentationClose(Microsoft.Office.Interop.PowerPoint.Presentation Pres) { pptDatei = new List&lt;string&gt;(); started = false; ende = true; WatchingLabel.Text = "Präsentation beenden..."; } public void ppApp_SlideShowEnd(Microsoft.Office.Interop.PowerPoint.Presentation Pres) { ende = true; started = false; } </code></pre>
 

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