473,695 Members | 2,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 42139

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.Offic e.Interop.Power Point;

then the following code

PowerPoint.Appl ication oPPT;
PowerPoint.Pres entations objPresSet;

//the location of your powerpoint presentation
string strPres;
strPres = @"mpPres.ppt ";
//Create an instance of PowerPoint.
oPPT = new PowerPoint.Appl icationClass();
// Show PowerPoint to the user.
oPPT.Visible = Microsoft.Offic e.Core.MsoTriSt ate.msoTrue;

objPresSet = oPPT.Presentati ons ;

//open the presentation
objPres = objPresSet.Open ( strPres,MsoTriS tate.msoFalse ,
MsoTriState.mso True ,MsoTriState.ms oTrue );

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
10205
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 the F1 key. In other words, I want to use the powerpoint presentation for my help system. I am calling the SlideShow from the applications menu, and it works great; however, the same techniques are not working for selecting individual slides. ...
1
2284
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 powerpoint must be placed on the page as well. Can someone help me out?
1
1613
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
1339
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. Our requirement is exporting to powerpoint presentation which is not available. So we are exporting first to word document and then there should be some code/tool to convert word document to powerpoint presentation.
9
8208
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 of my own form. So I added a reference to the Microsoft PowerPoint Object Library and tried to run a slideshow of the presentation. For this I am using those classes like PowerPoint.Application, PowerPoint.Presentation, PowerPoint.Slides, ......
1
260
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
2038
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 I'm resorting to doing it myself. I can convert the PowerPoint file to HTML and show the presentation in a form this way, however the conversion process makes a mess of some of the more complex slides. So, is it possible to show a powerpoint...
1
1738
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 to thier computer to view the presentation. I need a way to maybe embed the presentation into a webpage so that it can just be viewed online without having to download all the files to the local PC. I have already tried countless conversion...
13
10406
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 follows. C:\Documents and Settings\Tom\Desktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(129,45): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly...
0
8555
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9112
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8817
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7651
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5831
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4336
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2258
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.