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.
Many thanks
Ron Sibayan
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
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
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
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.
>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.
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