my dog learned polymorphism
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "MS Word Tables to HTML Tables" Watch "MS Word Tables to HTML Tables" New topic

MS Word Tables to HTML Tables


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

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

Joined: Oct 29, 2001
Posts: 9189

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.

[How To Ask Questions On JavaRanch]

Joined: Sep 16, 2005
Posts: 21
thanks a lot for the orientation
I agree. Here's the link:
subject: MS Word Tables to HTML Tables
It's not a secret anymore!