How to get output of xml in word format?
1 posts in topic
Flat View  Flat View

Posted By:   anand_mahalingam
Posted On:   Tuesday, April 11, 2006 05:33 AM

hello sir!
I had servlet page .From that page i am running a xml file which gives some output as templtes....

the problem is i hav to get the output in word format..that the temple which we made should be opened in word

i tried --------- res.setContentType("application/msword");

but it gives the only output of serlet(like pw.println("abcd")) in a word format.
so problem is getting xml's output in word format

Re: How to get output of xml in word format?

Posted By:   Lunkwill_Vroomfondel  
Posted On:   Wednesday, April 12, 2006 05:45 AM

hi, i think basically, you need to call

WordFormatter wf = new WordFormatter();
byte[] wordcontent = wf.transform();

you would of course have to implement the WordFormatter-class, or find one via google...
About | Sitemap | Contact