Saving to .rtf file from Word

T

Todd

Is there any way to save a range to a .rtf file? Here is my dilema. I have
a number of definitions in a Word document and each one has a delimiter
like:
<< Definition 1 >>
....
....
....
<< Definition 2 >>
....
....

I can easily find the definition text between the two delimiters but the
problem is saving it to rtf. Right now I create a temporary document insert
the selected range into that document, save it as an rtf file, and close the
temporary document. This has caused a bunch of different problems. Is
there another way to do this? Can I save a range to the clipboard? Is
there anything else I can do to save to the clipboard? I can create a rtf
file and feed the data from the clipboard to it I just can't get it into the
clipboard. The main application is written in C++ but the code dealing with
this portion of Word is written in VB. If code samples would help let me
know and I can post them here.

Thanks for any help you can give me.
Todd Parkin
 
S

Steve Lang

Hi Todd,

If you want to save a range to the clipboard, just use Range.Copy. That will
copy the contents of the range to the clipboard.
 

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