> Actually, I have to open a specific word document and perform mail merge
> with some record from the Oracle database and create a new document and send
> it to a particular mail id.
>
> This cannot be performed until and unless I create an object of MS Word in
> JAVA. If there is some other way then pls. inform me.

This may or may not work, depending on the complexity of the mail
merge operation you need, but...

An RTF file is just a text file.  If you save a copy of your doc as
RTF, with recognizable values in each field, you should be able to do
a simple text replace on the output with your db data.  If you mail it
to someone with the appropriate mime type, it will show up as a word
doc, with all the formatting intact.

Obviously this approach has limitations, but you don't have to deal
with java to com bridges or hassle with climbing on top of the word
object model, and it would be a lot cheaper in terms of resources.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to