>I am trying to understand the best method for creating a Microsoft Word
>document using Java. eventually the document will need to have merge
>fields already placed on it and rather than being a new doc, it will be
>opening a standard template. from what i can gather, it seems as though
>MS don't want Java to have this sort of functionality. Am i just
>flogging a dead horse? your advise would be greatly apreciated.
The easy way is to create an RTF document. See
http://mindprod.com/jgloss/jtextpane.html
another way is http://mindprod.com/jgloss/poi.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Paul Cager - 30 Sep 2005 09:11 GMT
> >I am trying to understand the best method for creating a Microsoft Word
> >document using Java. eventually the document will need to have merge
[quoted text clipped - 5 lines]
>
> another way is http://mindprod.com/jgloss/poi.html
RTF / HTML documents would certainly work, but it looks as though you
want to use some Word-specific features such as templates and fields?
If so then you might want to drive Word's API directly. IBM's
Bridge2Java (also known as "Interface Tool") can access many Windows
COM objects, including Word.
http://www.alphaworks.ibm.com/tech/bridge2java
You would need to be running on a Windows machine with Word installed.
Paul
Roedy Green - 30 Sep 2005 10:11 GMT
>RTF / HTML documents would certainly work, but it looks as though you
>want to use some Word-specific features such as templates and fields?
>If so then you might want to drive Word's API directly. IBM's
>Bridge2Java (also known as "Interface Tool") can access many Windows
>COM objects, including Word.
there are a number of com tools. I have them listed under
http://mindprod.com/jgloss/excel.html
One of them might also work.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Ron Sibayan - 30 Sep 2005 12:51 GMT
Thanks Guys,
I should have actually checked the history of post as i see this
question has been asked several times before :/
Thanks for your patience though, I think the jakarta POI thing will
sort me out
Ron
Jakarta POI is a gud choice for these kind of works..
Checkout POI at http://jakarta.apache.org/poi/hwpf/index.html
It has a very big API to work with MS word, Excel..from Java.
Also it is an open source.