I have done this in an environment where I know all the users are using at least MS Word 2003. I built a template in MS Word and put place holders for the data that would be pulled from a database and then saved the document with a .xml extension. I put this completed template on the server and open it with the File System Object, open a connection to the database and replace the placeholders with the content from the database. Then you set the content type to MS WOrd by doing this:
Response.ContentType ="application/msword"
The end result is a MS Word document streamed to the browser. It works beautifully and adding new templates/documents is a piece of cake.
Main Topics
Browse All Topics





by: ryancysPosted on 2006-10-01 at 09:34:17ID: 17638431
"template word" doc ? I guess you may simply use a WYSIWYG HTML Editor?
Have a look for this nice WYSIWYG HTML Editor:
FCK Editor:
http://www.fckeditor.net/
hope this helps