wood burning stoves 2.0*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
Author

How to open/run ppt/powerpoint files

LeRoy Gumeded
Greenhorn

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

Welcome,

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.

WP
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

LeRoy Gumeded
Greenhorn

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);

e.g.

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

but this code keep on bringing up a exception
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open/run ppt/powerpoint files