Hi All, I am stuck with a problem. My application is getting some data from database(Oracle) like name,age,sex,qualification etc. in a jsp page. There is a link in jsp page "Export to Word". My requirement is that when I click "Export to Word", A word file should open with a predefined format, i.e, A logo on top, a table and a footer. Table in word should be pre-populated with the data that I am getting from oracle.User should be able to use this word file as normal word file so all the tool bars of word should be visible to him. In nutshell, We are providing the user with a word document that has a predefined format(Images and footer) and the values in the table of word document, that are coming from database. After that user should be able to use it as normal word file. Please suggest how we can do this functionality using Java or Jsp or Servlet or any other java related technology. Please help as it is very urgent. Thanks in Advance.
Word documents can be created with the POI library. It's not being maintained anymore, but if your documents ar simple it may work for you. RTF might be an option as well, for which I'd recommend the iText library. Links to both libraries can be found on the AccessingFileFormats wiki page.
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
a bit of art, as a gift, that will fit in a stocking