File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes opening a word doc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "opening a word doc" Watch "opening a word doc" New topic

opening a word doc

raghu ram

Joined: Sep 25, 2006
Posts: 8
i want to open a word doc by clicking on a submit button from a mentioned file path
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
And what is your question? Give us a specific question, show us your work so far. Just telling us you want to do this and providing nothing else isn't likely to get a good response.
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 231
you can use Runtime interface's getRuntime() method to carete its object
and use exec() methos of it which returns Process object mentioned your path in that method argument
It is sorta covered in the JavaRanch Style Guide.
subject: opening a word doc