RTF to Word

  • Thread starter Thread starter Jeff Haumesser
  • Start date Start date
J

Jeff Haumesser

Does anyone know a way to display RTF text in a word document?

I have RTF text from a dataset, and wish to display the text Formatted in a
Word document. The problem is that the format codes are displayed as well.

In VB6, my solution was to put the text in Clipboard and paste it. However,
this doesn't seem to work in VB .NET. Maybe I'm just overlooking a simple
solution, but I sure can't seem to find it.

Any help would be appreciated.


Jeff
 
maybe there is an error in the RTF... Seems to me that a true RTF file will
display in Word reguardless... or are you just copying and pasting?

Does it display in the Richtextbox control? If you set selrtf?
 
I believe the codes are error free. This same text is displayed correctly
in a RichTextBox in another part of my application.
 
How are you putting the text into word? Are you setting the
document.content?

The way I got rtf data from a dataset into word was to write it to a
temporary file, then use the InsertFile command on a range in word.

Hope that helps..
 
Back
Top