473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Open Powerpoint Presentation from C# Window Form.


I am trying to open a 3 powerpoint presentation simultaneously afte
each other without interruption, the operator of the application doe
not need to notice anything or interfere in the operation of th
transition between the 3 presentations.

Let us say I have three powerpoint presentation Presentation 1
Presentation 2, and Presentation 3.

I like to fire them from a window form on the click event of a butto
on the form. The sequence of processing should be Presentation
followed by Presentation 2 and lastly Presentation 3. without th
operator having to search and double click on each presentation.

I wand to do this in C#.
Many Thank

--
Josep
-----------------------------------------------------------------------
Joseph's Profile: http://www.msusenet.com/member.php?userid=250
View this thread: http://www.msusenet.com/t-187059175

Nov 17 '05 #1
4 42086

By the way, I tried using
Process.Start(@"Test1.pps");
Process.Start(@"Test2.pps");

it works but it flicks between the two powerpoint presentation,
wanted a solution that is very smooth and does not tell that they ar
separate files. I know the concept but I can put my hands on th
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

--
Josep
-----------------------------------------------------------------------
Joseph's Profile: http://www.msusenet.com/member.php?userid=250
View this thread: http://www.msusenet.com/t-187059175

Nov 17 '05 #2
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

Nov 17 '05 #3

Hi Roonie
Thanks so much for your help, I actually got stuck on the first line.
can not get the interops installed for office 2000, it is only avaliabl
for office 2003. is there another way of getting interop for offic
2000.

Thanks
Josep

--
Josep
-----------------------------------------------------------------------
Joseph's Profile: http://www.msusenet.com/member.php?userid=250
View this thread: http://www.msusenet.com/t-187059175

Nov 17 '05 #4
Hi Joseph

you should be able to browse to the powepoint library using add refererence,
and let the IDE do the typelib export.

regards

ronnie

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WillRead | last post by:
I have a VB.Net application and a PowerPoint presentation explaining how each form in the application works, etc.. I would like to select and display the slide appropriate for each form by pressing...
1
by: Harry Bellafonte | last post by:
Hi I want to open a simple powerpoint sheet in the browser window. What is the best way to do that? I have searched in this group and saw different people telling that the pluginn for...
1
by: barry | last post by:
Would like to know the syntax to start a powerpoint presentation from a asp.net (vb.net) application thanks
0
by: NETRavi | last post by:
HI, For one of our ASP.NET project we are generating a business graph using a crystalreportviewer. The crystalreportviewer gives the possibility of exporting to .htm, .doc, . xls, .pdf, .rtf....
9
by: Sensei76 | last post by:
Hello, I have the following problem and I do not know how to accomplish this. I have an (existing) powerpoint presentation that should be displayed not within its own window, but within a control...
1
by: cherryparadise001 | last post by:
Is it possible to open a website or URL in internet explorer by clicking a button in window form? what class should I use?
0
by: PaulJMiddleton | last post by:
I'm in the middle of writing an application to display a scrolling marquee and a PowerPoint presentaion on multiple monitors. Powerpoint is unable to display more than one presentaion on one PC so...
1
by: =?Utf-8?B?d2lsbG5wb2s=?= | last post by:
Hello everyone. I have a PowerPoint Presentation that is 218 slides that includes animated gifs and sounds and everything. Currently they are online where the user will have to download the files...
13
by: Tastypotato | last post by:
I have the same exact question as Josep in this thread: http://bytes.com/forum/thread272940.html except when I try and compile the program I get a few errors (6 of them to be exact) They are as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.