>I have a VFP program that is trying to paste RTF code (that is manipulated first by a program) into a instance of Word. I can paste the code okay, but it is interpreted as text and simply displays all the rtf codes. If I take the rtf text and copy it to the clipboard in word and do a paste special (and even chose RTF code) it still pastes it as text. My only alternative so far is to save the text string as a file and then do a file open in word which then sees the RTF codes correctly.
>
>Any insights?
>
>Thanks.
>
>Bob
There are a couple of ways to do this that i can think of.
1. Use SoftClassic VisDocs for RTF maniplulation. ( Great tool )
2. Print RTF directly from VFP as Scott mention thru the DLL
but remember the RTF control activeX from MS does not support page breaks.
3. Copy RTF to a file then oWord.open ( as you have found )
4. Copy RTF to a file then oWord.InsertFile command to paste rtf files into the active document. Repeat for each record.
- jim -
- jim durkin
"The universe is a big place, perhaps the biggest." Kurt Vonnegut