Hi,
I am doing some proof of concept work at the moment that requires me to be able to programtically copy text from a VS rich textbox in an active panel into the hosting MS word document.
I basically want to preserve any formatting of the text so that it displays the same in the RTF text box and in the word document.
If you use the .rtf property of the rtf text box the text is copied but the rtf formatting appears as text
ie
'{\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\fnil\fcharset0 Microsoft Sans Serif;}}{\*\generator Riched20 5.50.99.2010;}\viewkind4\uc1\pard\ul\b\i\f0\fs24 hELLO\par\ulnone\b0\i0\f1\fs17\par'
when it should appear as hELLO
Can this be done If so can some one point me in the right direction.
I also have a requirement to be able to capure formatted text from Word (.doc not .rtf) and display it the a richtext text box.
Can this be also be done again a heads up in the right direction would be appreciated.
Thanks in advance.
Cheers
Adam