This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hello, is it possible to save a html file to a word document on the client side on click of a button? I have a SAVE button on a web page. I need to save its contents into a word document on click of the save. Help gr8tly appreciated/ Thanks Arvind
Eric is correct. Your best bet would be to, upon the click of the button, post a request ot a servlet that would output you page with a content type of RTF and marked as an 'attachment'. Search these forums for 'attachment' for the exact sytnax, I don't recall it off the top of my head. RTF is a text-based markup that Word will understand. It's a lot easier than trying to create the proprietary and ever-changing binary Word format. There are also 3rd-party libraries that might help you create word files if RTF is not suitable. But in all cases, this involves server-side processing. hth, bear