Hi All,
After lot of hits and misses i have turned to this forum. ?
I have a very simple JSF Portlet.
It has a simple textarea and two buttons.(Print and Save As).
On the click of the Save button i want the contents of the TextArea to be save to as a Word Doc.
The approach i tried using is :
popup.document.execCommand(“SaveAs”,true,”Default.doc”);
But it has two disadvantages:
a)When the “Save Dialog” appears the “Save as type” by default is “html or text” but not “Word Document”.
How can i convert the contents of html in textarea to purely word format?
b) Second exceCommand() it supported only by IE but not other browsers.
Please suggest me how could i make it support other browsers.
Are the above mentioned actions supported by JavaScript.
I am eagerly waiting for your suggestions.
Best Regards,
Pals.