wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes MS Word Tables to HTML Tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "MS Word Tables to HTML Tables" Watch "MS Word Tables to HTML Tables" New topic
Author

MS Word Tables to HTML Tables

nomeaning
Greenhorn

Joined: Sep 16, 2005
Posts: 21
Hi, i didn't receive any comment or response to my last post... so i will try to ask in some another way...

What tool or concept or API out there do i need to try in order to COPY a table for instance... from a Word file, PASTE that inside a JTextArea, WATCH that table inside the JTextArea in the same way as i saw it in word... and then save this table in HTML format in a database...

Thank you very much beforehand.
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
Ouch,

Not a simple requirement!

You actually want to build some sort of a mini-texteditor?

Although I'm absolutely sure that this is possible it will be a large and difficult task to create something like that. As far as I know it is not available in any standard API.

You might be able to find some library that has this functionality somewhere. I googled for you for a few minutes but I am not able to find something useful in that short time.

Well, I'm sorry if I have discouraged you but unless you have a lot of time to start creating a small text editor I would advise you to look for another solution. (Maybe something using images (table in an image)?)
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8713
    
    6

JEditorPane can render HTML. OpenOffice exposes an API that makes it possible to convert Word files to HTML. You just have to put the pieces together.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
nomeaning
Greenhorn

Joined: Sep 16, 2005
Posts: 21
thanks a lot for the orientation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MS Word Tables to HTML Tables
 
Similar Threads
Nice HTML inside JTextArea
TextArea wrap
Hide a URL: Example (Download THIS File)
Addressing dynamic table elements
is it possible to make some words of jtextarea as bold?