|
-
Jan 16th, 2004, 07:46 AM
#1
Thread Starter
Addicted Member
possible? table in richtextfield...[solved]
Is it possible to display a table in a richtextfield?
if so, a little push in the right direction would be nice....
thx
Last edited by demoti; Apr 13th, 2004 at 04:23 AM.
never argue with an idiot, he will bring you down to his level and will beat you through experience
-
Jan 16th, 2004, 08:44 AM
#2
Addicted Member
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.
See you,
-Jai
[Friends Never Say Good Bye]
-
Jan 16th, 2004, 09:02 AM
#3
Thread Starter
Addicted Member
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,
never argue with an idiot, he will bring you down to his level and will beat you through experience
-
Apr 11th, 2004, 04:16 AM
#4
Hyperactive Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|