473,729 Members | 2,349 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 42144

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
10212
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
2288
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
1617
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
1344
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
8211
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
2042
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
1741
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
10410
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
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
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
9426
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
9281
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8148
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
6722
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...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2163
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.