We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Storing and retrieving Word templates in MS SQL Server

Good Morning,

We're currently using aspose.words to provide checklists for various stages of a workflow application. The templates being used are currently stored in a physical directory. We'd like to be able to store these templates in MS Sql, retrieve and populate them as needed. Looking for an example for how to accomplish this requrement. Any links or advise you can provide would really be appreciated!

Regards,
Dave

Hi

Thanks for your request. Here you can find a simple code example, which shows how to save/read document from Data Base:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-load-and-save-a-document-to-database.html

I think the best way to fill the document with data is using Mail Merge feature. Please follow this link to learn more:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/simple-mail-merge-explained.html

Or you can try using Mail Merge with regions. Please see the following link:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/mail-merge-with-regions-explained.html

Hope this could be useful for you.

Best regards.