How to create a RTF file?

B

BVM

Hi,

Do you know how to create a RTF file? Do I have to use a third party component?

Thanks,

Dennis Huang
 
T

Tom Krueger [MSFT]

Hello,

There is the RichTextBox control that can be used in your application. I believe it is loaded in the Visual Studio Toolbox by default, you will need to scroll down a bit.

If this doesn't answer your question, please add more specifics on what you need.

Take care,

--
Tom Krueger

Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

Hi,

Do you know how to create a RTF file? Do I have to use a third party component?

Thanks,

Dennis Huang
 
H

Herfried K. Wagner [MVP]

BVM said:
Do you know how to create a RTF file? Do I have to use a third party
component?

Untested: Place a hidden richtextbox control on the form and use its
'Selection*' properties to construct the document. This should work for
"simple" RTF documents.
 
M

Morten Wennevik

Hi Dennis,

Well, you could use a RichTextBox object and use its SaveFile method
specifying which RTF format you want.
 
B

BVM

Thanks, Morten, Tom & Herfried.

Can I attach files to the RTF files, like attachment in email?

Dennis
 

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