lgarcia
11-10-2010, 06:59 PM
I need to save an HTML page to Word using JavaScript. Any ideas on that? I have found some script on-line but all of them use the "Save As" procedure which only allows to save in txt and html format. I need it to be in Word.
Thanks!
Philip M
11-10-2010, 07:13 PM
Internet Explorer's JScript (only) lets you write to the Windows file system by means of the harmless execCommand() function. It is possible in IE in certain circumstances to use ActiveX objects to access the directory and read files. This is not recommended for a variety of reasons, not least security issues.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
As WORD is a Microsoft product, you can use only a MS platform language. It is ActiveX (http://en.wikipedia.org/wiki/ActiveX). Of course, it will work only on IE browsers, and only if the user allows that. Or (I am not sure of the availability of the project for the latest FF versions) on FF, but only if the user installs a certain FF plug-in.