Re: Creating a MS Word Document through Java
- From: "Paul Cager" <news8573@xxxxxxxxxxxxx>
- Date: 30 Sep 2005 01:11:58 -0700
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
.
- Follow-Ups:
- Re: Creating a MS Word Document through Java
- From: Roedy Green
- Re: Creating a MS Word Document through Java
- References:
- Creating a MS Word Document through Java
- From: Ron Sibayan
- Re: Creating a MS Word Document through Java
- From: Roedy Green
- Creating a MS Word Document through Java
- Prev by Date: Re: Collection -- disregard -- sorry..
- Next by Date: Re: Creating a MS Word Document through Java
- Previous by thread: Re: Creating a MS Word Document through Java
- Next by thread: Re: Creating a MS Word Document through Java
- Index(es):
Relevant Pages
|
|