Technokrat
Programmer
Some background: we have a VB6 app that allows the user to enter data into several different Rich Text Boxes. The RTB data is then written into a SQl Server database. If you look at the text/string in the database it contains the Rich Text Formatting characters.
We want to use a Word (sadly 97) Macro to query the RTF from the database and place it appropriately in report template.
One possible solution would be to write each response to a RTF file, and then import each RTF file into the Word document. However, I'm convinced there has to be a better way to do this.
I know the SELECTION has the PASTESPECIAL method which allows you to paste using RTF, but I don't know how to get the string read from the Db onto the clipboard for PASTESPECIAL to be used. How is the clipboard accessed through VBA?
We want to use a Word (sadly 97) Macro to query the RTF from the database and place it appropriately in report template.
One possible solution would be to write each response to a RTF file, and then import each RTF file into the Word document. However, I'm convinced there has to be a better way to do this.
I know the SELECTION has the PASTESPECIAL method which allows you to paste using RTF, but I don't know how to get the string read from the Db onto the clipboard for PASTESPECIAL to be used. How is the clipboard accessed through VBA?