Copying richtext to Word
-
I have a rich textbox with bold text on my form and I want to copy it over into a textbox in a word document. The problem is that when I do it, it looses it's formating and is not bold anymore. How would I go about copying text while preserving the same style that it had. Also, how would I store Rich text in access database and not have it loose the formating. Thanks
-
I have a rich textbox with bold text on my form and I want to copy it over into a textbox in a word document. The problem is that when I do it, it looses it's formating and is not bold anymore. How would I go about copying text while preserving the same style that it had. Also, how would I store Rich text in access database and not have it loose the formating. Thanks
IIRC, there's no direct way to insert RTF text into a word document. I had to perform a similar task once and had to resort to copying the RTF from the
RichTextBox
to the clipboard, set the targetRange
in the Word document and then perform aPaste
to insert the RTF. Afterwards, I've restored the clipboard contents. Regards, mav