Re: Creating a MS Word Document through Java



Roedy Green wrote:
> On 29 Sep 2005 17:30:23 -0700, "Ron Sibayan" <sibayan_6@xxxxxxxxxxxxx>
> wrote or quoted :
>
> >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.<<snip>>
>
> 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

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

.



Relevant Pages

  • Re: Creating a MS Word Document through Java
    ... >I am trying to understand the best method for creating a Microsoft Word ... >MS don't want Java to have this sort of functionality. ... The easy way is to create an RTF document. ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.help)
  • Re: JAVA for FreeBSD
    ... > I have no idea what's provided with the Sun jdk; ... > learners and has a GUI I'll put in the effort. ... Since it is written in Java it should work out of the box once you have ... Windows machine, plus you will have nice installers :-( ...
    (comp.unix.bsd.freebsd.misc)
  • Open .RTF files in a new window
    ... RTF document it opens up Microsoft Word in a different window. ... I have been playing with the BrowserFlags registry setting and have added it ...
    (microsoft.public.windowsxp.general)
  • Re: how to map from display metrics to physical metrics...
    ... It whould be interesting to know where/how Java picks up this ... On a Windows machine it might be of no surprise ...
    (comp.lang.java.gui)
  • Re: how to map from display metrics to physical metrics...
    ... It whould be interesting to know where/how Java picks up this ... On a Windows machine it might be of no surprise ...
    (comp.lang.java.programmer)