Wite Rich Text To Word

K

kirk

In VB, I would like to write Rich Text directly to a Word
Document object. What I am thinking of is something
similar to the TextRTF call in the Rich Text Control.

As background, what I need to do is store the Rich Text
in a text field in a database and then dump it into the
word document. I cannot use templates or existing files.
Once I have the template from the database put into Word,
I will manipulate it.

Any help is appreciated.

Kirk
 
C

Cindy Meister -WordMVP-

Hi Kirk,
In VB, I would like to write Rich Text directly to a Word
Document object. What I am thinking of is something
similar to the TextRTF call in the Rich Text Control.

As background, what I need to do is store the Rich Text
in a text field in a database and then dump it into the
word document. I cannot use templates or existing files.
Once I have the template from the database put into Word,
I will manipulate it.
You can't do it, not directly. You either have to:

1) do your own RTF-to Word conversion, automating Word to
replace RTF tags with the desired formatting

2) put the RTF into a text file, save to disk, then insert
it in Word. Then Word's internal RTF converter will kick in
and do the conversion for you

3) display the RTF somewhere where the formatting is already
converted, COPY this, and PASTE into Word

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top