File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes How to open/run ppt/powerpoint files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to open/run ppt/powerpoint files" Watch "How to open/run ppt/powerpoint files" New topic

How to open/run ppt/powerpoint files

LeRoy Gumeded

Joined: Jul 09, 2012
Posts: 3
I am creating a program in java that will open ppt files, but i dont know how to.
iv seen sites that show you how to custimize and edit powerpoint, but never to Run or exute them from java
any tips , on what I can do ?
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859


How to you intend to run these powerpoint files? Usually the file extension in windows will dictate which application to use. .ppt, .pptx etc.

Is this a web app, in which case the files are hosted remotely or stand alone running on the users machine?

You really need to provide some more information so we can help.

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

LeRoy Gumeded

Joined: Jul 09, 2012
Posts: 3
Its a Desktop application, it will just excute them not run them

Iv tried using

desktop = Desktop.getDesktop(); and
Runtime.getRuntime().exec("rundll32 SHELL32.DLL, ShellExec_RunDLL " + cc);


Desktop.getDesktop().open(new File("C:\\Workshop.ppt"))

but this code keep on bringing up a exception
I agree. Here's the link:
subject: How to open/run ppt/powerpoint files
jQuery in Action, 3rd edition