Click to See Complete Forum and Search --> : How to make a jsp programs to send data to Ms Word ?
sarasta
06-04-2006, 11:58 AM
Hi all,
I'd appreciate it very much if you could help me to solve a problem :
I need to create a jsp which upon request from web browser, would return text to download to Ms Word. I use method response.setContentType("application/msword"), but insted of getting a promt where to download a Ms Word file, I get just a page in browser with the text. How to make a jsp to ask to download text to Ms Word file ?
Thank you.
Khalid Ali
06-05-2006, 02:22 PM
a bit confused here..:-)
if you are trying to get some text from a web page and then save that data as an ms word file?
Then you will need to get the data from the page in a request on the server and then perform some tasks to convert the data to ms doc. I vaguely remember something along these line(try google, may be at apache or something) there is a library that allowes u to do this using java.
sarasta
06-06-2006, 02:09 AM
Thank you Khalid,
well, actually I want a jsp to take text from database and return it as Ms Word file. I.e. when user clicks certain hyeprlink on web browser, pointing to my jsp file, then the user gets a message box asking if he wants to download the Ms Word file.
All right, I'll try to look around :)
Thank you,
regards,
Sarunas
Khalid Ali
06-06-2006, 01:15 PM
for that purpose setting the correct conent type should do just that...just make sure that application/msword is a correct type
sarasta
06-07-2006, 02:17 AM
Thanks Khalid :)
do you have an idea what should I have to type in google search field to find java packages that can transform text into Ms Wrod file ?
regards,
Saruans
Mr. Ram
06-10-2006, 01:51 AM
If u provide link, it could be graceful to us.