473,769 Members | 8,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open powerpoint presentation from a Windows C# form

7 New Member
I have the same exact question as Josep in this thread: http://bytes.com/forum/thread272940.ht ml 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\De sktop\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.Offi ce' (are you missing an assembly reference?)
C:\Documents and Settings\Tom\De sktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(134 ,13): error CS0103: The name 'objPres' does not exist in the current context
C:\Documents and Settings\Tom\De sktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(134 ,48): error CS0103: The name 'MsoTriState' does not exist in the current context
C:\Documents and Settings\Tom\De sktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(135 ,13): error CS0103: The name 'MsoTriState' does not exist in the current context
C:\Documents and Settings\Tom\De sktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(135 ,34): error CS0103: The name 'MsoTriState' does not exist in the current context

Now, please take in mind that I am still learning C# and know a little bit about C++, so I will be able to get some of it but I might need a more dumbed down version.

Also, since this code is not exactly something I want to post right up on the board, if you think you can help me please let me know. :)

-Tom

EDIT: Here's the snippet of code that I copy pasted from the old thread

Oct 3 '08
13 10415
Tastypotato
7 New Member
Hm, at first I thought it was going to work and then those 6 errors popped up again... Is there another way to go about doing this without having to use interop? It seems like it's too much of a hassle. :/
Oct 5 '08 #11
Curtis Rutland
3,256 Recognized Expert Specialist
Well, there's always
Expand|Select|Wrap|Line Numbers
  1. System.Diagnostics.Process.Start("pathToFileToStart");
That will just open a powerpoint application, if you point it to the .ppt file.
Oct 5 '08 #12
joedeene
583 Contributor
ya, i was thinking of that too, but it opens up MS Office Powerpoint and then you have to click view slide show or something to watch it....unless there's a command you can send to it, to start the slideshow as soon as it opens ?

joedeene
Oct 5 '08 #13
Tastypotato
7 New Member
Well, there's always
Expand|Select|Wrap|Line Numbers
  1. System.Diagnostics.Process.Start("pathToFileToStart");
That will just open a powerpoint application, if you point it to the .ppt file.
It's not as flashy, but I guess that will have to do as seeing as the interop doesn't really want to work in the program.
Oct 6 '08 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

3
17347
by: Levi | last post by:
How can I use php and mysql to create a downloadable .ppt file from the php-made output?
2
10213
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. ...
4
42147
by: Joseph | last post by:
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...
0
1657
by: Alexander Czernay | last post by:
I created a VB.NET-PowerPoint-AddIn as described in the VisualStudio 2003 documentation. That works very well. The AddIn adds a new toolbar to PowerPoint if the active document is based on a certain master. So I had to catch all events that notify a change of the active presentation. For that, I made two approaches: 1. A method that handles the apropriate events directly via HANDLES:
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, ......
0
2045
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...
6
6323
by: BWPanda | last post by:
Hi everyone, I'm wanting to use VB.NET to display a powerpoint presentation, much the same way as the presenter that comes with PowerPoint (when used on multiple monitors). Basically, I want to show the presentation in one form/window, and in the other, have controls for moving through the presentation, list of slides, etc. I don't really want code as such, more like a tutorial on how to do something like this.
3
8117
by: WPeterson | last post by:
Converting PowerPoint to Flash would absolutely be a good choice to distribute your bulky PowerPoint presentations. You can do the whole PowerPoint to Flash conversion manually or with professional applications. First, you'll need to prepare the PowerPoint files. Make sure you are not using any complicated gradients or animations. These will be interpreted poorly when they are brought into Flash. Also, make sure there are no objects that...
0
1199
by: dotnets8n | last post by:
Good day! I have such problem. I must play the PowerPoint presentation in my application. Several ActiveX components (f.e. EDraw Office Viewer) can do that but if the MS Office is not installed, they become useful. So, I need a way to view the PPT/PPS file without Office installed. The only application that can do this is MS PowerPoint Viewer (I`ve found only it at this time). But it doesn`t install/register any OCX that I can use in my...
0
9589
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
10216
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
10049
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...
0
9865
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...
1
7413
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
6675
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();...
1
3965
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
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.