This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » Java in General
Bookmark "invoking ms excel from app" Watch "invoking ms excel from app" New topic
Author

invoking ms excel from app

shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
Hey,
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){
System.out.println(e);
}
}
}
Ashu
shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
Thanks ashu
Shilpa.
 
Have you checked out Aspose?
 
subject: invoking ms excel from app
 
It's not a secret anymore!