We want to store Microsoft Word templates in our database. Then we wish to allow the user to edit the template files and then store them back to the database. What is the best strategy to use in this situation?
Is this possible if we have Word running in a separate process? i.e. not hosted in our application. If so would this involve monitoring a file on disk for changes, as that sounds horrible. With this thinking we would like to open the file from a memory stream and never let it touch the disk. But we are open to suggestions.
The problem with writing it to disk could be:
Once word opened from a temp file or folder the user created a new document without saving, then did not close word. (so we couldn't tell when the process finished) Or deleted the temp file or folder. i would like the solution where i could control word, perhaps host it in app. i would like to not have to write it to a file. any ideas?