• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

poi problem with reading and writing in the same word file

 
Raluca Stanculescu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raluca Stanculescu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
I have decided to go another way with this, by using this API.
http://rtftemplate.sourceforge.net/
Luckily it meets all my needs.


Hope this helps somebody.

Raluca
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic