Do you want the processing to be done on the server instead of the client? i.e. the form has a link or button that says something like "Download as a
Word file"? If so, then you can look into the JACOB project or the OpenOffice APIs. It isn't too complex, but it does take some fiddling to get it right.
Alternatively, Word 2003 and later have the ability to read from and write to XML (I think it is going to be the default in Word 2005). It would be fairly easy to convert the page to XML and send it back as a .
doc file. The drawback is that versions prior to 2003 would not be able to open the file.
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook