
Formatted text from rich text box to Word
Does anyone know of a way to programmatically move formatted text from a
Visual Basic rich text box control in a VB application to a Word document
using the Word object model?
I have spent several hours trying to get this to happen but so far, no luck.
The only thing that comes close is if I use the rich text box's SaveFile
method to write the text to a file, and then use the Word Range object's
InsertFile method to read in the file. But this seems like a cumbersome way
to do this. It seems as though there ought to be a simple way to transfer
the text from the VB application to the Word document while retaining all of
the formatting (bullited lists, bold, italic, etc.).
Thanks!!!