• Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening MS Word File inside JTextFrame  RSS feed

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Is their any way to open MS word file inside a JTextFrame.

can exec() solve my problem.......

thanks in advance

Ashish
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Word document is not a text file, dude. Have you ever tried opening one in Notepad, for example? That mess is what you would see in your JTextWhatever.

You can display RTF in a JTextPane, so if you're able to convert your Word document to RTF it might not be 100 miles off the mark...

Jules
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can try using Jakarta's POI project to access the word doc.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!