Re: Creation of MS Word Object.
Hi Thor, 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. Thanks, Tarun Dewan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thor Heinrichs-Wolpert Sent: Thursday, June 01, 2000 10:12 AM To: [EMAIL PROTECTED] Subject: Re: Creation of MS Word Object. You might find it easier to create an rtf stream and set the mime type to that for ms word. Thor HW - Original Message - From: "Tarun Dewan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 31, 2000 9:24 PM Subject: Creation of MS Word Object. Hi All, Can anybody explain me the procedure of creating MS Word object in JAVA. Thanks in advance. Bye, Tarun Dewan. === 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 === 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 === 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
Re: Creation of MS Word Object.
u can try jintegra from www.linar.com it is an excellent com2java bridge u can workaround with any word, excel file using this hope this helps u khem, Tarun Dewan wrote: Hi Thor, 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. Thanks, Tarun Dewan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thor Heinrichs-Wolpert Sent: Thursday, June 01, 2000 10:12 AM To: [EMAIL PROTECTED] Subject: Re: Creation of MS Word Object. You might find it easier to create an rtf stream and set the mime type to that for ms word. Thor HW - Original Message - From: "Tarun Dewan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 31, 2000 9:24 PM Subject: Creation of MS Word Object. Hi All, Can anybody explain me the procedure of creating MS Word object in JAVA. Thanks in advance. Bye, Tarun Dewan. === 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 === 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 === 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 === 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
Re: Creation of MS Word Object.
I think what you want to do Tarun is to use an Api that will let you interface with MSWORD. Basically a pure java com interface. Try JINTEGRA. . I used it quite some time back and it worked pretty well. You could use Microsoft DCOM but that will restrict your use. To Microsoft JVM unless you install the Java ActiveX plugin.! It's pretty messy. Especially since Microsoft has it's own JVM native interface. Oh i'm sorry not it's own but a modified. one..! : -) Vinod Hi Thor, 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. Thanks, Tarun Dewan. === 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
Re: Creation of MS Word Object.
JIntegra is really great. fribeiro - Original Message - From: "Khem Chand Sachdeva" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 4:02 AM Subject: Re: Creation of MS Word Object. u can try jintegra from www.linar.com it is an excellent com2java bridge u can workaround with any word, excel file using this hope this helps u khem, Tarun Dewan wrote: Hi Thor, 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. Thanks, Tarun Dewan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thor Heinrichs-Wolpert Sent: Thursday, June 01, 2000 10:12 AM To: [EMAIL PROTECTED] Subject: Re: Creation of MS Word Object. You might find it easier to create an rtf stream and set the mime type to that for ms word. Thor HW - Original Message - From: "Tarun Dewan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 31, 2000 9:24 PM Subject: Creation of MS Word Object. Hi All, Can anybody explain me the procedure of creating MS Word object in JAVA. Thanks in advance. Bye, Tarun Dewan. === 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 === 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 === 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 === 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 === 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
Re: Creation of MS Word Object.
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
Re: Creation of MS Word Object.
The original email stated that the objective was to achieve a mail merge with Oracle. If Oracle is V8 on NT you can use the proprietary Oracle-COM bridge provided as part of the server software that allows you to manipulate COM objects from within the DB via PLSQL. The server documentation covers how to do this quite clearly and includes samples for Word, Excel and MAPI. Not that I'd ever really recommend using Word OLE Automation as a server solution for anything *industrial-strength*. As for the RTF solution - if you are using Word 2000 it has support for HTML as a native file format. You might find it easier to manipulate the Word document as HTML rather than RTF. There are many other options - for an open community approach check out the FOP project at Apache. This could let you transform XML (easily produced by DB) into PDF - not really ready for prime time in my opinion but worth watching... === 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
Re: Creation of MS Word Object.
You might find it easier to create an rtf stream and set the mime type to that for ms word. Thor HW - Original Message - From: "Tarun Dewan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 31, 2000 9:24 PM Subject: Creation of MS Word Object. Hi All, Can anybody explain me the procedure of creating MS Word object in JAVA. Thanks in advance. Bye, Tarun Dewan. === 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 === 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