• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bringing up a .doc file in MS Word

 
Richard Mittleman
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd use the rundll32 utility for that; see http://www.rgagnon.com/javadetails/java-0014.html
 
Karthik Shiraly
Bartender
Posts: 1194
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic