File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Bringing up a .doc file in MS Word Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Bringing up a .doc file in MS Word" Watch "Bringing up a .doc file in MS Word" New topic
Author

Bringing up a .doc file in MS Word

Richard Mittleman
Greenhorn

Joined: Apr 19, 2010
Posts: 10
I am writing a .doc file and then bringing it up in MS Word. The following code works on a MAC but not in Windows. Any suggestions.


Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
You'd use the rundll32 utility for that; see http://www.rgagnon.com/javadetails/java-0014.html
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 539
    
    7
Richard Mittleman wrote:I am writing a .doc file and then bringing it up in MS Word. The following code works on a MAC but not in Windows. Any suggestions


Hi,

I open documents this way in Windows environment. The windows shell automatically launches associated app based on the extension.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bringing up a .doc file in MS Word