Mathias
11/9/2007 12:09:00 AM
Hi
I try to control a powerpoint slide show inside a dsoFramer Control
(axFramerControl).
When I press the F5 key, the slides are shown inside my control. When I
try to automate it, the slides are shown in full screen, outside my control.
Here is a part of my code:
Object refmissing = System.Reflection.Missing.Value;
object loc = strFileName;
//open ppt in control - works
axFramerControl.Open(loc, true, refmissing, refmissing, refmissing);
//get reference to ppt inside control
Microsoft.Office.Interop.PowerPoint._Presentation myPres =
(Microsoft.Office.Interop.PowerPoint.Presentation)axFramerControl.ActiveDocument;
//start presentation - does not worg (fullscreen insted of control)
myPres.SlideShowSettings.Run();
I hope someone can help me.
Mathias