473,799 Members | 3,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8089
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 MyPowerPointSho w As New PowerPoint.Appl ication

Private SlideIndex As Integer
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MyPowerPointSho w.Activate()
MyPowerPointSho w.Presentations .Open("c:\MyPPT .pps",
Microsoft.Offic e.Core.MsoTriSt ate.msoTriState Mixed)

Me.Timer1.Enabl ed = True
End Sub

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick

MyPowerPointSho w.ActiveWindow. Presentation.Sl ides.Item(Slide Index).Select()
SlideIndex += 1

End Sub

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

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmv ujpotXjui/OFU".ToCharArra y()
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
1476
by: Peter Sparkes | last post by:
Please, how do I run another application from within Python Regards Peter Sparkes
2
1841
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... ---------------------------------------------------------- CurrentDBDir = "c:\" ShellWait CurrentDBDir & "runthis.bat", vbNormalFocus ---------------------------------------------------------- This would run the "runthis.bat" file located in the c:\ directory...
6
5374
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 (that I also already have). Both scripts work great - I just don't know how to make them work together. Is this even possible?
2
11825
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 totally different program... let's say Notepad or something. I've been searching for a bit and can't seem to find any leads as to where I can find information.
1
1311
by: John | last post by:
How do you execute another application from within your csharp program?
5
3374
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 message is displayed... How can this be done? Can I make the section visible via server-side code? Via Response.Write()? Any examples would be appreciated!
2
1123
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 message has an ID in it, i want a new form to show. I currently do this within the thread: gContactForm = New frmContact(ID) gContactForm.MdiParent = gMainForm.ActiveForm gContactForm.Show() But on the gContactForm.Show(), the form appears...
0
1810
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 disable all mouse click events on slide show which is inside the webbrowser control, i tried all the ways, but cant disable it.If anyone know the result ,please give me the solutions....
0
1226
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 need them to point to dynamically. As it works now, I have to change the location of the datasource within the CR each time change the location of the Access database or I have to store the DB in the same place for the CR to work. I'm sure there's...
0
10473
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...
1
10219
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
10025
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
9068
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
7563
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
6804
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
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4138
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
2937
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.