poi problem with reading and writing in the same word file
Raluca Stanculescu
Greenhorn
Joined: Mar 19, 2010
Posts: 3
posted
0
Hello everybody,
I haven't been able to find a solution to this problem for a while now. You are my last hope. I am trying to fill out a word document from java with text (it's a CV type thing) and tables.
Anyway it goes something like this
The problem is that while poi 3.6 doesn't keep the same fonts and format of the initial file, poi 3.2 (I read on a forum that it will work), does keep some of the formatting but it still is no good at all.
I find it unbelievable that something as important as this does not work.
Kind regards,
Raluca
This message was edited 1 time. Last update was at by Raluca Stanculescu
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32421
posted
0
The DOC support of POI is rather basic, especially when it comes to changing existing documents. If you need to use DOC, consider using OpenOffice's Java API through OO's server mode. Or maybe use a format that's easier to work with, like RTF which is just text, and thus amenable to string search/replace operations.