jQuery in Action, 3rd edition
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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
Rancher

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

Joined: Apr 04, 2009
Posts: 694
    
  14

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
 
It's not a secret anymore!