Is it possible to display a table in a richtextfield?
if so, a little push in the right direction would be nice....
thx
Printable View
Is it possible to display a table in a richtextfield?
if so, a little push in the right direction would be nice....
thx
According to my knowledge it is not possible. I just tried copying & pasting datta from excel. It is aligned as tab separated values. If you wan't to display data in table format I suggest you to use MS Flex Grid. If you want content & table should be displayed in a single control, try using OLE. But personally I hate that.
I was hoping it was...since i'm just looking for options to tune my application i think it is not worth the work... I'l look into it and if i should find anything after all, i'll let you know for sure...
thanks,
Well, look, i know a way to add tables in RichTextBox!
Do the following and you will you will understand what i am saying!
Open MS-WordPad and the create some tables in the rtf document!
Then save it and open it with notepad! As you can see it has some little code for tables! Copy paste the code and try to create an engine to create tables! For example i am giving you the rtf code for creating a table with 1 column and 1 row:
{\rtf1\ansi\ansicpg1253\deff0\deflang1032\deflangfe1032{\fonttbl{\f0\froman\fprq2\fcharset161{\*\fna me Times New Roman;}Times New Roman Greek;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\trowd\trgaph108\trleft-108\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trpaddl108\trpaddr108\trpaddfl3\trpaddfr3
\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx8414\pard\intbl\nowidctlpar\lang1033\f1\fs24 This is a table for testing\cell\row\pard\nowidctlpar
}
As you can see it is very difficult to create an engine in VB for this tables but it is not impossible, just difficult!
If you need more help with this just send reply or PM me!