Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2004, 05:53 AM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to generate WORD doc. from XML files???

Hi;

I am doing the engineering project of end of my studies at the university,
it's based on developing an application Web to take certain management.
I use Java technology to manipulate XML files, and to make different treatments
 on the WEBpages (JSP + Beans + XML). I extract the necessary information of
the database oracle and with her I generate files XML pertinent.
For certain tasks I need to extract information of these XML files and
generate WORD documents.
My question is, ¿ does it exist any api of Java which resolves this problem?
, ¿ does it exist some other solutions?
and if you think that it is not possible, ¿which solution can you give me?
, As a finally solution i would have to generate pdf documents by objects means of XSL format (fo-Xsl)?
 I hope that you have an answer to my question, would be helpful to me.

Thanks beforehand

 
Old March 11th, 2004, 05:59 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

There are a number of solutions, depending on what version of Word you want it to work for.
* Word 2003 - The easiest as it can store files as xml documents. You just need to write an xslt that transforms to WordML.
* Word XP/2000 - Either transform to html, which can be read by Word or use a Java class which transforms to RTF. There are a couple, search Google for "xml rtf conversion". You can save as xml as in 2003 but it's a horrible format and you can't use custom transformations as you can in 2003.
* Word 97 - As for XP/2000 regarding RTF and html except that the html must be fairly simple.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy text from 1 doc to other doc thru vba in word itchock Word VBA 2 December 29th, 2006 02:47 AM
Can 1 xslt transform an xml doc into 2 text files Raju Sarode XSLT 7 November 3rd, 2006 04:10 PM
Creating word doc. thru .dot or XML document manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 2 March 1st, 2006 07:18 AM
BLOB graphic files /.wmf into a Word doc mckly Pro VB Databases 1 July 2nd, 2004 02:18 AM
Copy word to word doc. in VB vamshi Pro VB 6 1 March 24th, 2004 06:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.