473,394 Members | 1,946 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,394 software developers and data experts.

Running a PowerPoint Show (.pps) within VB.NET

Running a PowerPoint Show (.pps) within VB.NET

Hi, I have a .NET application that I want to control the presentation of a
PowerPoint Show (.pps). The application should control when the show should
start and when to stop. Is this possible?

TIRislaa
Nov 21 '05 #1
1 8049
I havent go time to fully debug this, but this should set you in the right
direction. First add a COM reference to the Power Point Library 2.8

Private MyPowerPointShow As New PowerPoint.Application

Private SlideIndex As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MyPowerPointShow.Activate()
MyPowerPointShow.Presentations.Open("c:\MyPPT.pps" ,
Microsoft.Office.Core.MsoTriState.msoTriStateMixed )

Me.Timer1.Enabled = True
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick

MyPowerPointShow.ActiveWindow.Presentation.Slides. Item(SlideIndex).Select()
SlideIndex += 1

End Sub

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Tor Inge Rislaa" <to*************@rislaa.no> wrote in message
news:yF*****************@news2.e.nsc.no...
Running a PowerPoint Show (.pps) within VB.NET

Hi, I have a .NET application that I want to control the presentation of a
PowerPoint Show (.pps). The application should control when the show
should
start and when to stop. Is this possible?

TIRislaa

Nov 21 '05 #2

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

Similar topics

1
by: Peter Sparkes | last post by:
Please, how do I run another application from within Python Regards Peter Sparkes
2
by: Brad Pears | last post by:
What is the syntax for running say... a batch file (.bat) from within ASP? For example... in MS Access you can say something like this......
6
by: von | last post by:
Is it possible to run a Perl script from within a javascript? I have an existing javascript that provides some data - and I want to write that data to a text file on my server via a Perl script...
2
by: JMe9ka | last post by:
Is it possible to run an external executable (.exe) from within a program? Let's say you have a windows form control with a button that says "Run" and when the button is clicked, it launches a...
1
by: John | last post by:
How do you execute another application from within your csharp program?
5
by: PontiMax | last post by:
Hi, when I press the OK button of my dialog box a long-running task is initiated. Therefore I would like to make visible a div section right after clicking the button where a user-friendly...
2
by: Julia Chen | last post by:
I have an application that has a thread which listens to a port for incoming messages. The thread is declared and started in my main form, that is opened from my sub main. In this thread, when a...
0
by: cheenusri | last post by:
Hello friends, i am running slide show(pps file) in vb.net form using webbrowser control in it.while running the form, if right click on the slide, it show some popup menu, here i wan to...
0
by: jcunningham | last post by:
Hello. I am running Crystal Reports (CR) from within an Access DB. I need to be able to have CR point to the Access DB it resides in automatically. That is, the CR's reside in the database I...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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...
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...

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.