I have a scenario where an C# appliction needs to generate word documents based on templates.

The requirments are.

Users have the ability to create / edit a .dot word template file (Through microsoft word) which includes fields.

The application will then use these template files and insert data into the specified fields from a database.

A .doc / .docx file will then be generated and saved to a folder.

In the past this could be achieved using xml scheme document level customisation however this feature has been removed due to patent issues. Ref: XML Schema

If anyone has achieved this in the past or knows of a method for doing so could you please let me know?