You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Steve Jones <St...@PLMDoctor.com> on 2007/11/08 01:05:26 UTC

Mail Merge with Word

Trying to use the mail merge feature of Word to be able to programmatically
insert text into MergeField type fields. Found a number of referrals to POI
as a solution but can not find any way to actually do it. Basically, need to
be able to programmatically update predefined fields in a Word document and
re-update as data changes.

 


RE: Mail Merge with Word

Posted by Steve Jones <St...@PLMDoctor.com>.
It looks like Aspose.Words from Aspose is what I am looking for.

-----Original Message-----
From: Anthony Andrews [mailto:pythonaddict@yahoo.com] 
Sent: Friday, November 09, 2007 3:27 AM
To: POI Users List
Subject: RE: Mail Merge with Word

Have you looked at using VBA - macros - to accomplish this task?

It is a very limited technique - it is unlikely that you could sense when
the data has changed and update the document automatically for example and
it is not a solution that lends itself to a distributed (networked) solution
- but there are macro commands that allow you to do anything to a Word
document that you could ordinarily accomplish through manipulating the
various menu options.

Steve Jones <St...@PLMDoctor.com> wrote: RTFTemplate is what we had in
mind but we are limited to Word .doc format.

-----Original Message-----
From: Angelo zerr [mailto:angelo.zerr@gmail.com] 
Sent: Thursday, November 08, 2007 2:26 AM
To: POI Users List
Subject: Re: Mail Merge with Word

Hi,
If you can use RTF model you can see RTFTemplate at
http://rtftemplate.sourceforge.net/.
It can merge Java Object with RTF model.

RTFTemplate provide macro MS Word to help you insert quicly fields of your
model (
http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.html).

Merge between Java Object and RTF model is done with Java API Velocity or
Freemarker.

Regards Angelo

2007/11/8, Steve Jones :
>
> Trying to use the mail merge feature of Word to be able to
> programmatically
> insert text into MergeField type fields. Found a number of referrals to
> POI
> as a solution but can not find any way to actually do it. Basically, need
> to
> be able to programmatically update predefined fields in a Word document
> and
> re-update as data changes.
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org



 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


RE: Mail Merge with Word

Posted by Anthony Andrews <py...@yahoo.com>.
Have you looked at using VBA - macros - to accomplish this task?

It is a very limited technique - it is unlikely that you could sense when the data has changed and update the document automatically for example and it is not a solution that lends itself to a distributed (networked) solution  - but there are macro commands that allow you to do anything to a Word document that you could ordinarily accomplish through manipulating the various menu options.

Steve Jones <St...@PLMDoctor.com> wrote: RTFTemplate is what we had in mind but we are limited to Word .doc format.

-----Original Message-----
From: Angelo zerr [mailto:angelo.zerr@gmail.com] 
Sent: Thursday, November 08, 2007 2:26 AM
To: POI Users List
Subject: Re: Mail Merge with Word

Hi,
If you can use RTF model you can see RTFTemplate at
http://rtftemplate.sourceforge.net/.
It can merge Java Object with RTF model.

RTFTemplate provide macro MS Word to help you insert quicly fields of your
model (
http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.html).

Merge between Java Object and RTF model is done with Java API Velocity or
Freemarker.

Regards Angelo

2007/11/8, Steve Jones :
>
> Trying to use the mail merge feature of Word to be able to
> programmatically
> insert text into MergeField type fields. Found a number of referrals to
> POI
> as a solution but can not find any way to actually do it. Basically, need
> to
> be able to programmatically update predefined fields in a Word document
> and
> re-update as data changes.
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org



 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Mail Merge with Word

Posted by Steve Jones <St...@PLMDoctor.com>.
RTFTemplate is what we had in mind but we are limited to Word .doc format.

-----Original Message-----
From: Angelo zerr [mailto:angelo.zerr@gmail.com] 
Sent: Thursday, November 08, 2007 2:26 AM
To: POI Users List
Subject: Re: Mail Merge with Word

Hi,
If you can use RTF model you can see RTFTemplate at
http://rtftemplate.sourceforge.net/.
It can merge Java Object with RTF model.

RTFTemplate provide macro MS Word to help you insert quicly fields of your
model (
http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.html).

Merge between Java Object and RTF model is done with Java API Velocity or
Freemarker.

Regards Angelo

2007/11/8, Steve Jones <St...@plmdoctor.com>:
>
> Trying to use the mail merge feature of Word to be able to
> programmatically
> insert text into MergeField type fields. Found a number of referrals to
> POI
> as a solution but can not find any way to actually do it. Basically, need
> to
> be able to programmatically update predefined fields in a Word document
> and
> re-update as data changes.
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Mail Merge with Word

Posted by Angelo zerr <an...@gmail.com>.
Hi,
If you can use RTF model you can see RTFTemplate at
http://rtftemplate.sourceforge.net/.
It can merge Java Object with RTF model.

RTFTemplate provide macro MS Word to help you insert quicly fields of your
model (
http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.html).

Merge between Java Object and RTF model is done with Java API Velocity or
Freemarker.

Regards Angelo

2007/11/8, Steve Jones <St...@plmdoctor.com>:
>
> Trying to use the mail merge feature of Word to be able to
> programmatically
> insert text into MergeField type fields. Found a number of referrals to
> POI
> as a solution but can not find any way to actually do it. Basically, need
> to
> be able to programmatically update predefined fields in a Word document
> and
> re-update as data changes.
>
>
>
>