File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes poi problem with reading and writing in the same word file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "poi problem with reading and writing in the same word file" Watch "poi problem with reading and writing in the same word file" New topic
Author

poi problem with reading and writing in the same word file

Raluca Stanculescu
Greenhorn

Joined: Mar 19, 2010
Posts: 3
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
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.


Android appsImageJ pluginsJava web charts
Raluca Stanculescu
Greenhorn

Joined: Mar 19, 2010
Posts: 3
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
 
 
subject: poi problem with reading and writing in the same word file
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture