Home All Groups Group Topic Archive Search About
Author
25 Apr 2006 6:56 AM
sebastien1101
i need to make a Table in RTF in my richTextBox...

I can't find any sample to help me to begin this works...

If someone have a little sample...

thx

Author
25 Apr 2006 8:50 AM
R. MacDonald
Hello Sebastien,

You could have a look at:

http://www.microsoft.com/downloads/details.aspx?familyid=ac57de32-17f0-4b46-9e4e-467ef9bc5540&displaylang=en

to see if it gives you any help.  One "trick" I have used in the past is
  to create a Word document with the structure I want, then save it as
RTF and examine the codes produced.  This is a bit like using "Record
Macro". It (probably) doesn't give you exactly what you want, but can
provide an idea of the codes to use for the "real" thing.

Cheers,
Randy


sebastien1101 wrote:
Show quoteHide quote
> i need to make a Table in RTF in my richTextBox...
>
> I can't find any sample to help me to begin this works...
>
> If someone have a little sample...
>
> thx
>
Author
25 Apr 2006 11:32 PM
Herfried K. Wagner [MVP]
"R. MacDonald" <sci***@NO-SP-AMcips.ca> schrieb:
> You could have a look at:
>
> http://www.microsoft.com/downloads/details.aspx?familyid=ac57de32-17f0-4b46-9e4e-467ef9bc5540&displaylang=en
>
> to see if it gives you any help.  One "trick" I have used in the past is
> to create a Word document with the structure I want, then save it as RTF
> and examine the codes produced.  This is a bit like using "Record Macro".
> It (probably) doesn't give you exactly what you want, but can provide an
> idea of the codes to use for the "real" thing.

Well, but note that the RichTextBox control supports only a small subset of
available RTF commands and IIRC does not support tables.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>