Planning to use the RichTextEdit control for loading MS-Word documents and subsequent merging the documents with data. The MS-Word document will be initially loaded from the file system using the RichTextEdit.LoadDocument() method. The document needs to be subsequently saved to SQL Server 2016 and later loaded back into RichTextEdit from SQL Server. Is there a preferred approach for:
- Storing the .docx file in SQL Server?
- Reloading the SQL Server data stream into RichTextEdit?
Thanks.
You may want to try the approach shown in the How to: Customize Built-in Command Using Service Substitution documentation topic. You can use that method to override the default handling of the open/save buttons wherein you can save/retrieve the .docx file as a blob to/from the database.