Jakarta POI to generate MS Word documents

M

mlv2312

Hi,

I am dealing with the following problem: I need to generate some word
reports by opening a default word template. So, I must be able to read
the word template and REPLACE some generic fields by placing data from
an XML file.

I was studying Jakarta POI HWPF, but its implementation hasn't
finished yet.

So, I was wondering if it is possible to use POIFS to do what I am
intending to:
open a word template and generate a word report using POIFS. Is it
possible?

How could I do this?

Tks,
Marcelo
 
T

TechBookReport

Hi,

I am dealing with the following problem: I need to generate some word
reports by opening a default word template. So, I must be able to read
the word template and REPLACE some generic fields by placing data from
an XML file.

I was studying Jakarta POI HWPF, but its implementation hasn't
finished yet.

So, I was wondering if it is possible to use POIFS to do what I am
intending to:
open a word template and generate a word report using POIFS. Is it
possible?

How could I do this?

Tks,
Marcelo

When I've had to do this I've used XML > HTML then open Word and have a
macro that imports the HTML and supplies any final tweaks to the format.
Not perfect but it works and it beats having to navigate the dire Word
object model.

HTH

====================================================
TechBookReport http://www.techbookreport.com
 
?

=?ISO-8859-1?Q?S=E9bastien_Auvray?=

(e-mail address removed) a écrit :
Hi,

I am dealing with the following problem: I need to generate some word
reports by opening a default word template. So, I must be able to read
the word template and REPLACE some generic fields by placing data from
an XML file.

I was studying Jakarta POI HWPF, but its implementation hasn't
finished yet.

So, I was wondering if it is possible to use POIFS to do what I am
intending to:
open a word template and generate a word report using POIFS. Is it
possible?

How could I do this?

Tks,
Marcelo

If you're not in complete love with POI, have a look a Jacob
http://danadler.com/jacob/...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top