Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes generating word document using java??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "generating word document using java???" Watch "generating word document using java???" New topic
Author

generating word document using java???

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hello guys.. I've got a question.
I have a "template" word document that must be customized according to the user's requirements.
The word document contains fields that need to be accommodate, for example:
Loan amount <<credit_amount_field>>
The amount of cretid to you,
<<middle1>> <<surname>>
of
<<address>>
something like this.
does anyone how to create a java class that takes up this document and adapt it creating the m$$ document??
thanks in advance


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
hmm. Looks like the POI word subproject hasn't gotten too far yet. They may someday.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
I think you are better off doing something like that using MS Tools. The fact is that MS can change their Word document format any time they feel like it and your program will fail.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
hhmm... so I guess this means that I should learn visual basic...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: generating word document using java???