Home All Groups Group Topic Archive Search About
Author
23 Nov 2004 11:08 PM
BVM
Hi,

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

Thanks,

Dennis Huang

Author
23 Nov 2004 11:18 PM
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.

  "BVM" <Denn***@TBH.com.au> wrote in message news:OveJTFb0EHA.1152@TK2MSFTNGP14.phx.gbl...
  Hi,

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

  Thanks,

  Dennis Huang
Author
23 Nov 2004 11:19 PM
Herfried K. Wagner [MVP]
"BVM" <Denn***@TBH.com.au> schrieb:
>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 S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
23 Nov 2004 11:21 PM
Morten Wennevik
Hi Dennis,

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


On Wed, 24 Nov 2004 10:08:18 +1100, BVM <Denn***@TBH.com.au> wrote:

Show quote
> Hi,
>
> Do you know how to create a RTF file? Do I have to use a third party 
> component?
>
> Thanks,
>
> Dennis Huang


--
Happy Coding!
Morten Wennevik [C# MVP]
Author
24 Nov 2004 12:44 AM
BVM
Thanks, Morten, Tom & Herfried.

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

Dennis

"Morten Wennevik" <MortenWenne***@hotmail.com> wrote in message
news:opshxxtj1iklbvpo@pbn_computer...
Show quote
> Hi Dennis,
>
> Well, you could use a RichTextBox object and use its SaveFile method
> specifying which RTF format you want.
>
>
> On Wed, 24 Nov 2004 10:08:18 +1100, BVM <Denn***@TBH.com.au> wrote:
>
>> Hi,
>>
>> Do you know how to create a RTF file? Do I have to use a third party
>> component?
>>
>> Thanks,
>>
>> Dennis Huang
>
>
> --
> Happy Coding!
> Morten Wennevik [C# MVP]
Author
24 Nov 2004 8:10 AM
Tim Anderson
>"BVM" <Denn***@TBH.com.au> wrote in message
>news:OveJTFb0EHA.1152@TK2MSFTNGP14.phx.gbl...

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

An RTF file is plain text marked up with RTF tags. The specification is in
MSDN. So one way is to generate your own RTF and write it out.

Tim
..NET pros and cons
http://www.itwriting.com/phorum/list.php?f=6

AddThis Social Bookmark Button