Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • 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
Posts: 42968
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: 1208
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic