The file output can be in any form I like as long as it can be opened by
MS word and looks nice. It's currently output in that XMLish form. I
can't invest a lot of time in this so staring at file formats and
deciphering them is out.
I was looking at the API's and there is a
HWPFDocument.write(OutputStream). I tried that and it does work; the
output appears to be native binary doc format, which is fine with me.
So, what I can do is identify portions in the document to be updated,
slam home new values, and save the file out.
The one trick part is that I need to generate a dynamic table in the
doc. The columns are the same but the number of rows differ.
So basically, I could use this library to find the fields I need, update
the string table, and save it out. I can just set sentinal values in the
DOT as a template and key off those.
Any other ideas?
Christian
http://christian.bongiorno.org
Anthony Andrews wrote:
Is the file to be output in the 'new' xml format that Microsoft has recently
adopted for Word documents? If so, then I would suggest that you visit
Sourceforge to see if anyone has coded a tool to parse/create this type of
file; I know that someone has already done so for SpreadsheetML.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/