Dear All,

I wrote a program in C# to start the powerpoint slide show using example of http://support.microsoft.com/kb/303718 .

I wanted to update the content periodically using this C# program when the slide show is running. The content is an excel table.

However, the content does not change. Anyway to do this?

Geo

PPTPres.SlideShowSettings.Run();
PowerPoint.SlideShowWindows PPTSlideShWin = PPTApp.SlideShowWindows;
while (PPTSlideShWin.Count >= 1)
{
Microsoft.Office.Interop.Excel.Worksheet WkSheet =
(Microsoft.Office.Interop.Excel.Worksheet)Wk.Worksheets["Sheet1"];
Microsoft.Office.Interop.Excel.Range range;
range = WkSheet.get_Range("C7", Missing.Value);
range.Value2 = "Hello";

Wk.RefreshAll();

PowerPoint.SlideShowWindow PPTSWW = PPTSlideShWin[1];
PPTSWW.View.GotoSlide(1, MsoTriState.msoTrue);


}

Recommended Answers

All 3 Replies

You need these changes to take place while the presentation is running?

Thats it. Update content while slideshow is running

You need these changes to take place while the presentation is running?

I think it's not applicable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.