Hi Joseph
The following might be what you are looking for
Add a reference to the powerpoint object library (make sure you have the
interops installed)
add the directive;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
then the following code
PowerPoint.Application oPPT;
PowerPoint.Presentations objPresSet;
//the location of your powerpoint presentation
string strPres;
strPres = @"mpPres.ppt";
//Create an instance of PowerPoint.
oPPT = new PowerPoint.ApplicationClass();
// Show PowerPoint to the user.
oPPT.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;
objPresSet = oPPT.Presentations ;
//open the presentation
objPres = objPresSet.Open ( strPres,MsoTriState.msoFalse ,
MsoTriState.msoTrue ,MsoTriState.msoTrue );
hope it helps
regards
Ronnie
"Joseph" wrote:
By the way, I tried using
Process.Start(@"Test1.pps");
Process.Start(@"Test2.pps");
it works but it flicks between the two powerpoint presentation, I
wanted a solution that is very smooth and does not tell that they are
separate files. I know the concept but I can put my hands on the
syntax.
1. Create a powerpoint object.
2. Open Test1.pps
3. Open Test2.pps
4. Quite the application.
This way it will not flick between Test1 and Test2
Thanks in advance.
--
Joseph
------------------------------------------------------------------------
Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
View this thread: http://www.msusenet.com/t-1870591750