The moose likes Java in General and the fly likes invoking ms excel from app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "invoking ms excel from app" Watch "invoking ms excel from app" New topic

invoking ms excel from app

shilpa reddy

Joined: Dec 12, 2000
Posts: 29
I would like to invoke an app, for example ms excel from my java app in my actionListener. Any ideas on how to do this.
Thanks in advance,
Shilpa Reddy
Ashutosh Uprety
Ranch Hand

Joined: Nov 30, 2000
Posts: 39
This will serve ur purpose. Put any other exe in place of notepad. It will work too.
public class Exe {
public static void main(String[] args) {
try {
Runtime r = Runtime.getRuntime();
Process p = r.exec("Notepad");
catch(Exception e){
shilpa reddy

Joined: Dec 12, 2000
Posts: 29
Thanks ashu
Don't get me started about those stupid light bulbs.
subject: invoking ms excel from app
Similar Threads
IE file save as
Need to use ActiveX components in my Java Application...
JSP/Servlet With MS Excel?
Is it possible to have mutiple font colors in a single cell in Excel using POI API.
how to detect MS excel using servlet?