aspose 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


Win a copy of Spring in Action this week in the Spring 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
Marshal

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


Ping & DNS - my free Android networking tools app
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 513
    
    6
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