Hi,
How can I call the program that have exetension *.pps(PowerPoint Show) ? Not .exe!
thanks! :sad:
Seyha Eng
0
Newbie Poster
Recommended Answers
Jump to PostI dont have the code you would use on me but it would be something like call powerpoint first with an argument of calling the file you want it to open. if i find the code i have to open word docs i will give it to you but the …
Jump to Postin a module
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
then in your button or whatever
retval …
Jump to Postoops, sorry
retval = ShellExecute(Form1.hwnd, "Open", "whatever.pps", 0&, 0&, 1)
don't forget to change "Form1" to the name of your form (any form you have), and change "whatever.pps" to whatever file you want to open.
Jump to PostI don't understand what you are asking. you can change "whatever.pps" to "c:\myfile.pps" or whatever.... and it will still work. Is that what you are asking? (the answer is yes... you can specify a path and file name)
Jump to PostAh.... pretty sure:
retval = ShellExecute(Form1.hwnd, "Open", app.path & "\whatever.pps", 0&, 0&, 1)
app.path references any location that your program is run from. So, if you make sure whatever.pps is in the same folder as your exe, it will work fine.
if you are unsure how …
All 19 Replies
big_k105
11
PFO Founder
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Seyha Eng
0
Newbie Poster
uniquestar
26
Posting Whiz in Training
Comatose
290
Taboo Programmer
Team Colleague
tupadjia
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.